Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1229 Rev 1230
Línea 227... Línea 227...
227
            if (response['success']) {
227
            if (response['success']) {
228
                $("#rows").html('');
228
                $("#rows").html('');
229
                sections = [];
229
                sections = [];
230
                $('#form-main').attr('action', action);
230
                $('#form-main').attr('action', action);
231
                $('#form-main #form-name').val(response['data']['name']);
231
                $('#form-main #form-name').val(response['data']['name']);
232
                $('#form-main #job_description_id').val(response['data']['job_description_id']);
232
                $('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
233
                $('#form-main #form-status').val(response['data']['status']);
233
                $('#form-main #form-status').val(response['data']['status']);
234
                CKEDITOR.instances['form-description'].setData(response['data']['description']);
234
                CKEDITOR.instances['form-description'].setData(response['data']['description']);
235
                CKEDITOR.instances['form-text'].setData(response['data']['text']);
235
                CKEDITOR.instances['form-text'].setData(response['data']['text']);
236
                sections = response['data']['content'] || [];
236
                sections = response['data']['content'] || [];
237
                renderData(sections);
237
                renderData(sections);
Línea 388... Línea 388...
388
    $('button.btn-add-form').click(function(e) {
388
    $('button.btn-add-form').click(function(e) {
389
        $("#rows").html('');
389
        $("#rows").html('');
390
        sections = [];
390
        sections = [];
391
        $('#form-main').attr('action', '$routeAdd');
391
        $('#form-main').attr('action', '$routeAdd');
392
        $('#form-main #form-name').val('');
392
        $('#form-main #form-name').val('');
393
        $('#form-main #job_description_id').val('');
393
        $('#form-main #job_description_id').val('').trigger('change');
394
        $('#form-main #form-status').val('$status_active');
394
        $('#form-main #form-status').val('$status_active');
395
        CKEDITOR.instances['form-text'].setData('');
395
        CKEDITOR.instances['form-text'].setData('');
396
        CKEDITOR.instances['form-description'].setData('');
396
        CKEDITOR.instances['form-description'].setData('');
397
        $('#row-lists').hide();
397
        $('#row-lists').hide();
398
        $('#row-form').show();
398
        $('#row-form').show();