Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1020 Rev 1021
Línea 262... Línea 262...
262
    });
262
    });
263
    /**
263
    /**
264
     * Clicked edit section
264
     * Clicked edit section
265
     */
265
     */
266
    $('button.btn-edit-section').click(function(e) {
266
    $('button.btn-edit-section').click(function(e) {
267
        console.log('1')
267
        e.preventDefault();
-
 
268
        var id = $(this).data('section');
-
 
269
        sections.map((item) => {
-
 
270
            if (section.id == id) {
-
 
271
 
-
 
272
                $('#form-section #id_section').val(item.section_id);
-
 
273
        $('#form-section #title-section').val(item.title);
-
 
274
        $('#form-section #text-text').val(item.text);
-
 
275
        $('#form-section #type-section').val(item.section);
-
 
276
        $('#modal-section').modal('show');
268
        
277
 
-
 
278
                return;
-
 
279
            }
-
 
280
        });
269
    });
281
    });
Línea 270... Línea 282...
270
 
282
 
271
    /**
283
    /**
272
     * Clicked edit section
284
     * Clicked edit section
273
     */
285
     */
-
 
286
    $('button.btn-delete-section').click(function(e) {
274
    $('button.btn-delete-section').click(function(e) {
287
        e.preventDefault();
275
        var id = $(this).data('section');
288
        var id = $(this).data('section');
276
        bootbox.confirm({
289
        bootbox.confirm({
277
            title: "LABEL_DELETE LABEL_CONDUCT",
290
            title: "LABEL_DELETE LABEL_CONDUCT",
278
            message: "LABEL_QUESTION_DELETE",
291
            message: "LABEL_QUESTION_DELETE",
Línea 682... Línea 695...
682
                                    {{if type == 'multiple'}} Multiple {{/if}}
695
                                    {{if type == 'multiple'}} Multiple {{/if}}
Línea 683... Línea 696...
683
            
696
            
684
 
697
 
685
                                </td>
698
                                </td>
Línea 686... Línea 699...
686
                                <td>
699
                                <td>
Línea 687... Línea 700...
687
                                    <button type="button" class="btn btn-default btn-edit-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button>
700
                                    <button class="btn btn-default btn-edit-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button>
688
 
701
 
689
                                    <button  type="button"class="btn btn-default btn-delete-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> 
702
                                    <button  class="btn btn-default btn-delete-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> 
690
 
703
 
691
                                     {{if type == 'multiple'}}
704
                                     {{if type == 'multiple'}}
692
                                    <button type="button" class="btn btn-default btn-add-option" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_OPTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_OPTION </button> 
705
                                    <button  class="btn btn-default btn-add-option" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_OPTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_OPTION </button> 
693
                                    {{/if}}
706
                                    {{/if}}