[TASK] Documentation: Update jQuery-usage 79/24879/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 17 Oct 2013 21:13:07 +0000 (23:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 18 Oct 2013 18:03:54 +0000 (20:03 +0200)
* Use central jQuery
* Get rid of not used JS-parts (tools, validation)

Change-Id: Ie64b66fd0f6cc5a73c8dc70425fb18aa74b6d8be
Resolves: #52932
Releases: 6.2
Reviewed-on: https://review.typo3.org/24879
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/documentation/Resources/Private/Layouts/Default.html
typo3/sysext/documentation/Resources/Public/JavaScript/configuration.js
typo3/sysext/documentation/Resources/Public/JavaScript/main.js

index 1a8e532..f27a72d 100644 (file)
@@ -1,18 +1,16 @@
 {namespace doc=TYPO3\CMS\Documentation\ViewHelpers}
 
 {namespace doc=TYPO3\CMS\Documentation\ViewHelpers}
 
-<f:be.container pageTitle="{f:translate(key: 'documentation_manager')}" enableJumpToUrl="true" enableClickMenu="false" loadPrototype="false" loadScriptaculous="false" loadExtJs="false" loadExtJsTheme="true"
+<f:be.container pageTitle="{f:translate(key: 'documentation_manager')}" enableJumpToUrl="true" enableClickMenu="false" loadPrototype="false" loadScriptaculous="false" loadExtJs="false" loadExtJsTheme="true" loadJQuery="true"
 
        includeCssFiles="{
                0:'{f:uri.resource(path:\'Css/main.css\')}',
                1:'contrib/jquery/jquery.clearable.css'
        }"
        includeJsFiles="{
 
        includeCssFiles="{
                0:'{f:uri.resource(path:\'Css/main.css\')}',
                1:'contrib/jquery/jquery.clearable.css'
        }"
        includeJsFiles="{
-               0:'contrib/jquery/jquery-1.8.2.min.js',
-               1:'contrib/jquery/jquery.dataTables-1.9.4.min.js',
-               2:'contrib/jquery/jquery.tools.min.js',
-               2a:'contrib/jquery/jquery.clearable.js',
-               3:'{f:uri.resource(path:\'JavaScript/main.js\')}',
-               4:'{f:uri.resource(path:\'JavaScript/configuration.js\')}'
+               0:'contrib/jquery/jquery.dataTables-1.9.4.min.js',
+               1:'contrib/jquery/jquery.clearable.js',
+               2:'{f:uri.resource(path:\'JavaScript/main.js\')}',
+               3:'{f:uri.resource(path:\'JavaScript/configuration.js\')}'
        }">
 
        <div id="typo3-docheader">
        }">
 
        <div id="typo3-docheader">
index a4ea4da..234c040 100644 (file)
@@ -3,7 +3,6 @@
 
        $(document).ready(function() {
                configurationFieldSupport();
 
        $(document).ready(function() {
                configurationFieldSupport();
-               $('.validate').validator();
        });
 
        function configurationFieldSupport() {
        });
 
        function configurationFieldSupport() {
index f938b00..b31c738 100644 (file)
@@ -24,7 +24,7 @@ TYPO3.DocumentationApplication = {
        },
        // Initializes the list view
        documentationListView: function(getVars) {
        },
        // Initializes the list view
        documentationListView: function(getVars) {
-               this.datatable = $('#typo3-documentation-list').dataTable({
+               this.datatable = jQuery('#typo3-documentation-list').dataTable({
                        'bPaginate': false,
                        'bJQueryUI': true,
                        'bLengthChange': false,
                        'bPaginate': false,
                        'bJQueryUI': true,
                        'bLengthChange': false,
@@ -39,7 +39,7 @@ TYPO3.DocumentationApplication = {
        },
        // Initializes the management view
        documentationManageView: function(getVars) {
        },
        // Initializes the management view
        documentationManageView: function(getVars) {
-               this.datatable = $('#typo3-documentation-manage').dataTable({
+               this.datatable = jQuery('#typo3-documentation-manage').dataTable({
                        'bPaginate': false,
                        'bJQueryUI': true,
                        'bLengthChange': false,
                        'bPaginate': false,
                        'bJQueryUI': true,
                        'bLengthChange': false,