Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1137 | Rev 1154 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1137 Rev 1139
Línea 547... Línea 547...
547
            $('#select-conduct').append($('<option>', {
547
            $('#select-conduct').append($('<option>', {
548
                value: '',
548
                value: '',
549
                text: 'LABEL_SELECT'
549
                text: 'LABEL_SELECT'
550
            }));
550
            }));
551
            $.each(data.data, function(i, item) {
551
            $.each(data.data, function(i, item) {
552
 
-
 
553
                console.log(filterItemById(item.uuid));
-
 
554
                if (filterItemById(item.uuid).length <= 0) {
552
                if (filterItemById(item.uuid).length <= 0) {
555
                    $('#select-conduct').append($('<option>', {
553
                    $('#select-conduct').append($('<option>', {
556
                        value: item.uuid,
554
                        value: item.uuid,
557
                        text: item.description
555
                        text: item.description
558
                    }));
556
                    }));
Línea 562... Línea 560...
562
    }
560
    }
563
    /**
561
    /**
564
     * Clicked cancel new/edit Form
562
     * Clicked cancel new/edit Form
565
     */
563
     */
566
    $('body').on('click', 'button[id="btn-select-conduct"]', function(e) {
564
    $('body').on('click', 'button[id="btn-select-conduct"]', function(e) {
567
        console.log($("#select-conduct").text())
-
 
568
        if ($("#select-conduct").val() == "") {
565
        if ($("#select-conduct").val() == "") {
569
            $.fn.showError('LABEL_ERROR_SELECT_CONDUCT');
566
            $.fn.showError('LABEL_ERROR_SELECT_CONDUCT');
570
        } else {
567
        } else {
571
            behaviors.push({
568
            behaviors.push({
572
                'id': $("#select-conduct").val(),
569
                'id': $("#select-conduct").val(),
Línea 752... Línea 749...
752
               </button>
749
               </button>
753
            </div>
750
            </div>
754
            <div class="modal-body">
751
            <div class="modal-body">
755
               <div class="form-group">
752
               <div class="form-group">
756
                  <label for="conduct-name">LABEL_DESCRIPTION</label>
753
                  <label for="conduct-name">LABEL_DESCRIPTION</label>
757
                  <input type="text" name="conduct-description" id="conduct-description" class="form-control" maxlength="95" value="" />
754
                  <input type="text" name="conduct-description" id="conduct-description" class="form-control" maxlength="200" value="" />
758
               </div>
755
               </div>
759
            </div>
756
            </div>
760
            <div class="modal-footer">
757
            <div class="modal-footer">
761
               <button type="button" class="btn btn-primary btn-conduct-submit">LABEL_SAVE</button>
758
               <button type="button" class="btn btn-primary btn-conduct-submit">LABEL_SAVE</button>
762
               <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
759
               <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>