Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8965 Rev 8966
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
        $('#form-section #section-text').ckeditor();
977
        $('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
977
        $('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
978
        $('#modal-section').modal('show');
978
        $('#modal-section').modal('show');
979
    });
979
    });
980
    /**
980
    /**
981
     * Clicked on edit section
981
     * Clicked on edit section
Línea 989... Línea 989...
989
            section = objFormGenerator.sections[i];
989
            section = objFormGenerator.sections[i];
990
            if (slug == section.slug_section) {
990
            if (slug == section.slug_section) {
991
                validatorFormSection.resetForm();
991
                validatorFormSection.resetForm();
992
                $('#form-section #section-slug').val(section.slug_section);
992
                $('#form-section #section-slug').val(section.slug_section);
993
                $('#form-section #section-name').val(section.name);
993
                $('#form-section #section-name').val(section.name);
994
                $('#section-text').ckeditor({
994
                CKEDITOR.instances['section-text'].setData(section.text);
995
                    toolbar: [
-
 
996
                    { name: 'editing', items: ['Scayt'] },
-
 
997
                    { name: 'links', items: ['Link', 'Unlink'] },
-
 
998
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
-
 
999
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
-
 
1000
                    '/',
-
 
1001
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
-
 
1002
                    { name: 'styles', items: ['Styles', 'Format'] },
-
 
1003
                    { name: 'tools', items: ['Maximize'] }
-
 
1004
                ],
-
 
1005
                removePlugins: 'elementspath,Anchor',
-
 
1006
                heigth: 100
-
 
1007
                }).val(section.text);
-
 
1008
                showForm = true;
995
                showForm = true;
1009
                break;
996
                break;
1010
            }
997
            }
1011
        }
998
        }
1012
        if (showForm) {
999
        if (showForm) {