Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1016 Rev 1017
Línea 261... Línea 261...
261
        $('#modal-section').modal('show');
261
        $('#modal-section').modal('show');
262
    });
262
    });
263
    /**
263
    /**
264
     * Clicked edit section
264
     * Clicked edit section
265
     */
265
     */
266
    $('#btn-edit-section').click(function(e) {
266
    $('.btn-edit-section').click(function(e) {
267
        var id = $(this).data('conduct');
267
        var id = $(this).data('section');
268
        sections.map((item) => {
268
        sections.map((item) => {
269
            if (section.id == id) {
269
            if (section.id == id) {
Línea 270... Línea 270...
270
 
270
 
271
                $('#form-section #id_section').val(item.section_id);
271
                $('#form-section #id_section').val(item.section_id);
Línea 280... Línea 280...
280
    });
280
    });
Línea 281... Línea 281...
281
 
281
 
282
    /**
282
    /**
283
     * Clicked edit section
283
     * Clicked edit section
284
     */
284
     */
-
 
285
    $('.btn-remove-section').click(function(e) {
285
    $('#btn-remove-section').click(function(e) {
286
        e.preventDefault();
-
 
287
        var id = $(this).data('section');
-
 
288
        bootbox.confirm({
-
 
289
            title: "LABEL_DELETE LABEL_CONDUCT",
-
 
290
            message: "LABEL_QUESTION_DELETE",
-
 
291
            buttons: {
-
 
292
                cancel: {
-
 
293
                    label: '<i class="fa fa-times"></i> LABEL_CANCEL'
-
 
294
                },
-
 
295
                confirm: {
-
 
296
                    label: '<i class="fa fa-check"></i> LABEL_ACCEPT'
-
 
297
                }
-
 
298
            },
-
 
299
            callback: function(result) {
-
 
300
                if (result) {
-
 
301
                    removeSection(id);
-
 
302
                }
-
 
303
            }
286
        $('#modal-section').modal('show');
304
        });
Línea 287... Línea 305...
287
    });
305
    });
288
 
306