From df844448c4a2de1136c046e03ed00ea8ba337de3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 1 Jun 2015 18:38:22 +0200 Subject: [PATCH] Updated ACP JavaScript to be somewhat similar, still not finished --- .../install/files/acp/templates/header.tpl | 20 ++++--------- .../files/js/WoltLab/WCF/ACP/Bootstrap.js | 29 +++++++++++++++++++ 2 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/ACP/Bootstrap.js diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 94f4133ca1..cae38fe70c 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -10,15 +10,13 @@ {@$__wcf->getStyleHandler()->getStylesheet(true)} {event name='stylesheets'} - @@ -31,9 +29,7 @@ {event name='javascriptInclude'} @@ -46,16 +42,11 @@ baseUrl: '{@$__wcf->getPath()}js' }); - define('jquery', [], function() { return window.jQuery; }); - $.holdReady(true); - require(['WoltLab/WCF/Bootstrap'], function(bootstrap) { - bootstrap.setup(); - });