Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8964 Rev 8965
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', {
976
        CKEDITOR.instances['section-text'].setData('');
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('');
-
 
990
        $('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
977
        $('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
991
        $('#modal-section').modal('show');
978
        $('#modal-section').modal('show');
992
    });
979
    });
993
    /**
980
    /**
994
     * Clicked on edit section
981
     * Clicked on edit section
Línea 1002... Línea 989...
1002
            section = objFormGenerator.sections[i];
989
            section = objFormGenerator.sections[i];
1003
            if (slug == section.slug_section) {
990
            if (slug == section.slug_section) {
1004
                validatorFormSection.resetForm();
991
                validatorFormSection.resetForm();
1005
                $('#form-section #section-slug').val(section.slug_section);
992
                $('#form-section #section-slug').val(section.slug_section);
1006
                $('#form-section #section-name').val(section.name);
993
                $('#form-section #section-name').val(section.name);
1007
                CKEDITOR.instances['section-text'].setData(section.text);
994
                $('#section-text').ckeditor({
-
 
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;
1008
                showForm = true;
1009
                break;
1009
                break;
1010
            }
1010
            }
1011
        }
1011
        }
1012
        if (showForm) {
1012
        if (showForm) {