Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 858 Rev 859
Línea 259... Línea 259...
259
                    updateCkeditor:function() {
259
                    updateCkeditor:function() {
260
                        CKEDITOR.instances.description.updateElement();
260
                        CKEDITOR.instances.description.updateElement();
261
                    },
261
                    },
262
                    required: true,
262
                    required: true,
263
                },
263
                },
264
                'behaviors': {
-
 
265
                    updateCkeditor:function() {
-
 
266
                        CKEDITOR.instances.behaviors.updateElement();
-
 
267
                    },
-
 
268
                    required: true,
-
 
269
                },
-
 
Línea 270... Línea 264...
270
 
264
 
271
                'status': {
265
                'status': {
Línea 272... Línea 266...
272
                    required: false,
266
                    required: false,
Línea 319... Línea 313...
319
            $('#form').attr('action', '$routeAdd');
313
            $('#form').attr('action', '$routeAdd');
320
            $('#form #name').val('');
314
            $('#form #name').val('');
321
            $('#form #competency_type_id').val('').trigger('change');
315
            $('#form #competency_type_id').val('').trigger('change');
322
            $('#form #status').bootstrapToggle('on');
316
            $('#form #status').bootstrapToggle('on');
323
            CKEDITOR.instances.description.setData('');
317
            CKEDITOR.instances.description.setData('');
324
            CKEDITOR.instances.behaviors.setData('');
-
 
325
 
-
 
Línea 326... Línea 318...
326
 
318
 
327
            validator.resetForm();
319
            validator.resetForm();
Línea 328... Línea 320...
328
            $('#modal').modal('show');
320
            $('#modal').modal('show');
Línea 346... Línea 338...
346
                    $('#form').attr('action', action);
338
                    $('#form').attr('action', action);
347
                    $('#form #name').val(response['data']['name']);
339
                    $('#form #name').val(response['data']['name']);
348
                    $('#form #competency_type_id').val(response['data']['competency_type_id']).trigger('change');
340
                    $('#form #competency_type_id').val(response['data']['competency_type_id']).trigger('change');
349
                    $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
341
                    $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
350
                    CKEDITOR.instances.description.setData(response['data']['description']);
342
                    CKEDITOR.instances.description.setData(response['data']['description']);
351
                    CKEDITOR.instances.behaviors.setData(response['data']['behaviors']);
-
 
352
                    validator.resetForm();
343
                    validator.resetForm();
Línea 353... Línea 344...
353
                    
344
                    
Línea 354... Línea 345...
354
                    $('#modal').modal('show');
345
                    $('#modal').modal('show');
Línea 411... Línea 402...
411
 
402
 
412
 
403
 
413
 
-
 
414
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
404
 
415
        CKEDITOR.replace( 'description' );
405
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
416
        CKEDITOR.replace( 'behaviors' );
406
        CKEDITOR.replace( 'description' );
417
    });
407
    });