Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8364 Rev 8365
Línea 738... Línea 738...
738
                    if (response['success']) {
738
                    if (response['success']) {
739
                        $.fn.showSuccess(response['data']);
739
                        $.fn.showSuccess(response['data']);
740
                        if (formContinue == 1) {
740
                        if (formContinue == 1) {
741
                            $('#form-main').attr('action',response['action_edit']);
741
                            $('#form-main').attr('action',response['action_edit']);
742
                            $('#form-main #form-id').val(response['id']);
742
                            $('#form-main #form-id').val(response['id']);
743
                            $('#form-main #form-continue').val(0);
743
                            $('#form-main #form-continue').val('');
744
                        } else {
744
                        } else {
745
                            $('#row-edit').hide();
745
                            $('#row-edit').hide();
746
                            $('#row-forms').show();
746
                            $('#row-forms').show();
747
                        /*---------- Reset Form -------- */
747
                        /*---------- Reset Form -------- */
748
                        $('#form-main')[0].reset();
748
                        $('#form-main')[0].reset();
Línea 1274... Línea 1274...
1274
    });
1274
    });
1275
    /**
1275
    /**
1276
     * Clicked save and continue new Form
1276
     * Clicked save and continue new Form
1277
     */
1277
     */
1278
    $('button.btn-form-save-continue').click(function(e) {
1278
    $('button.btn-form-save-continue').click(function(e) {
1279
        for (var instanceName in CKEDITOR.instances) {
1279
        e.preventDefault();
1280
            CKEDITOR.instances[instanceName].updateElement();
1280
        $('#form-main #form-continue').val('1')
1281
        }
-
 
1282
        saveData(1);
-
 
1283
    });
1281
    });
1284
    /**
1282
    /**
1285
     * Clicked save and close new/edit Form
1283
     * Clicked save and close new/edit Form
1286
     */
1284
     */
1287
    $('button.btn-form-save-close').click(function(e) {
1285
    $('button.btn-form-save-close').click(function(e) {