Added DatePicker to ACP
authorAlexander Ebert <ebert@woltlab.com>
Sat, 20 Jun 2015 12:25:45 +0000 (14:25 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 20 Jun 2015 12:25:45 +0000 (14:25 +0200)
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/js/WoltLab/WCF/ACP/Bootstrap.js

index 188eb73359782aa9b378c440628e1882bfde4623..b05b4baadc3cd012cf3619236b124653490b59ef 100644 (file)
                        
                        new WCF.Effect.SmoothScroll();
                        WCF.System.PageNavigation.init('.pageNavigation');
-                       WCF.Date.Picker.init();
                        
                        {if $__wcf->user->userID}
                                new WCF.ACP.Search();
index 1243c441e8ae225516a4a491b66285cd97dc2401..2efb780554167917fa02136a1193ee923a574e90 100644 (file)
@@ -6,7 +6,7 @@
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @module     WoltLab/WCF/ACP/Bootstrap
  */
-define(['WoltLab/WCF/Bootstrap'], function(Bootstrap) {
+define(['WoltLab/WCF/Bootstrap', 'WoltLab/WCF/Date/Picker'], function(Bootstrap, DatePicker) {
        "use strict";
        
        /**
@@ -22,6 +22,7 @@ define(['WoltLab/WCF/Bootstrap'], function(Bootstrap) {
                 */
                setup: function(options) {
                        Bootstrap.setup();
+                       DatePicker.init();
                }
        };