Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8767 Rev 8964
Línea 971... Línea 971...
971
    $('body').on('click', 'button[id="btn-add-section"]', function(e) {
971
    $('body').on('click', 'button[id="btn-add-section"]', function(e) {
972
        e.preventDefault();
972
        e.preventDefault();
973
        validatorFormSection.resetForm();
973
        validatorFormSection.resetForm();
974
        $('#form-section #section-slug').val('');
974
        $('#form-section #section-slug').val('');
975
        $('#form-section #section-name').val('');
975
        $('#form-section #section-name').val('');
976
        CKEDITOR.instances['section-text'].setData('');
976
        CKEDITOR.instances['section-text', {
-
 
977
            toolbar: [
-
 
978
                    { name: 'editing', items: ['Scayt'] },
-
 
979
                    { name: 'links', items: ['Link', 'Unlink'] },
-
 
980
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
-
 
981
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
-
 
982
                    '/',
-
 
983
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
-
 
984
                    { name: 'styles', items: ['Styles', 'Format'] },
-
 
985
                    { name: 'tools', items: ['Maximize'] }
-
 
986
                ],
-
 
987
                removePlugins: 'elementspath,Anchor',
-
 
988
                heigth: 100
-
 
989
        }].setData('');
977
        $('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
990
        $('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
978
        $('#modal-section').modal('show');
991
        $('#modal-section').modal('show');
979
    });
992
    });
980
    /**
993
    /**
981
     * Clicked on edit section
994
     * Clicked on edit section