Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8989 Rev 8990
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.replace('section').val('');
976
        CKEDITOR.instances.section.setData('');
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 1385... Línea 1385...
1385
                ],
1385
                ],
1386
                removePlugins: 'elementspath,Anchor',
1386
                removePlugins: 'elementspath,Anchor',
1387
                heigth: 100
1387
                heigth: 100
1388
    }
1388
    }
Línea 1389... Línea -...
1389
 
-
 
1390
    CKEDITOR.replace('section', config);
1389
 
1391
    CKEDITOR.replace('description', config);
1390
    CKEDITOR.replace('description', config);
Línea 1392... Línea 1391...
1392
    CKEDITOR.replace('text', config);
1391
    CKEDITOR.replace('text', config);
1393
     
1392
     
Línea 1640... Línea 1639...
1640
    </div>
1639
    </div>
Línea 1641... Línea 1640...
1641
 
1640
 
Línea 1642... Línea 1641...
1642
    <!-- End Modal Options -->
1641
    <!-- End Modal Options -->
1643
 
1642
 
-
 
1643
    <!---Template Sections --->
-
 
1644
    <script id="sectionTemplate" >
-
 
1645
        CKEDITOR.replace('section', {
-
 
1646
            toolbar: [
-
 
1647
                    { name: 'editing', items: ['Scayt'] },
-
 
1648
                    { name: 'links', items: ['Link', 'Unlink'] },
-
 
1649
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
-
 
1650
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
-
 
1651
                    '/',
-
 
1652
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
-
 
1653
                    { name: 'styles', items: ['Styles', 'Format'] },
-
 
1654
                    { name: 'tools', items: ['Maximize'] }
-
 
1655
                ],
-
 
1656
                removePlugins: 'elementspath,Anchor',
-
 
1657
                heigth: 100
1644
    <!---Template Sections --->
1658
        });
1645
    <script id="sectionTemplate" type="text/x-jsrender">
1659
 
1646
    <div class="panel panel-default" id="panel-{{:slug_section}}">
1660
    <div class="panel panel-default" id="panel-{{:slug_section}}">
1647
        <div class="panel-heading">
1661
        <div class="panel-heading">
1648
            <h4 class="panel-title">
1662
            <h4 class="panel-title">