Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1045 Rev 1046
Línea 316... Línea 316...
316
                $('#modal-section').modal('show');
316
                $('#modal-section').modal('show');
317
                return;
317
                return;
318
            }
318
            }
319
        });
319
        });
320
    });
320
    });
-
 
321
     /**
-
 
322
     * Clicked remove option
-
 
323
     */
-
 
324
    $('body').on('click', 'button.btn-delete-option', function(e) {
-
 
325
        e.preventDefault();
-
 
326
        var id_section = $(this).data('section');
-
 
327
        var id_option = $(this).data('option');
-
 
328
        bootbox.confirm({
-
 
329
            title: "LABEL_DELETE LABEL_OPTION",
-
 
330
            message: "LABEL_QUESTION_DELETE",
-
 
331
            buttons: {
-
 
332
                cancel: {
-
 
333
                    label: '<i class="fa fa-times"></i> LABEL_CANCEL'
-
 
334
                },
-
 
335
                confirm: {
-
 
336
                    label: '<i class="fa fa-check"></i> LABEL_ACCEPT'
-
 
337
                }
-
 
338
            },
-
 
339
            callback: function(result) {
-
 
340
                if (result) {
-
 
341
                    removeOption(id_section, id_option);
-
 
342
                }
-
 
343
            }
-
 
344
        });
-
 
345
    });
321
    /**
346
    /**
322
     * Clicked add new Option
347
     * Clicked add new Option
323
     */
348
     */
324
    $('body').on('click', 'button.btn-add-option', function(e) {
349
    $('body').on('click', 'button.btn-add-option', function(e) {
325
        e.preventDefault();
350
        e.preventDefault();
Línea 397... Línea 422...
397
        e.preventDefault();
422
        e.preventDefault();
398
        $('#row-form').hide();
423
        $('#row-form').hide();
399
        $('#row-lists').show();
424
        $('#row-lists').show();
400
    });
425
    });
401
    /**
426
    /**
402
     * Clicked save and continue new Form
-
 
403
     */
-
 
404
    $('button.btn-form-save-continue').click(function(e) {
-
 
405
        e.preventDefault();
-
 
406
        $('#form-main #form-continue').val('1')
-
 
407
        $('#form-main').submit();
-
 
408
    });
-
 
409
    /**
-
 
410
     * Clicked save and close new/edit Form
427
     * Clicked save and close new/edit Form
411
     */
428
     */
412
    $('button.btn-form-save-close').click(function(e) {
429
    $('button.btn-form-save-close').click(function(e) {
413
        e.preventDefault();
430
        e.preventDefault();
414
        $('#form-main #form-continue').val('0')
431
        $('#form-main #form-continue').val('0')