aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/jquery/update.sh
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2016-11-26 14:21:52 +0100
committerAndreas Gohr <andi@splitbrain.org>2016-11-26 14:21:52 +0100
commit5928c8e71080077bf8d9ed0cbfe33ffa8ca7b904 (patch)
tree3c797f056a79a51142be3632e89dcaca7c42dfc7 /lib/scripts/jquery/update.sh
parent0a1c13c92d15be092eb02ef8725de246fd94d52b (diff)
downloaddokuwiki-5928c8e71080077bf8d9ed0cbfe33ffa8ca7b904.tar.gz
dokuwiki-5928c8e71080077bf8d9ed0cbfe33ffa8ca7b904.zip
use external version file for jquery updates
this also removes the non inified versions and incorporates some updates the jquery CDN just pushed for jquery-ui
Diffstat (limited to 'lib/scripts/jquery/update.sh')
-rwxr-xr-xlib/scripts/jquery/update.sh19
1 files changed, 4 insertions, 15 deletions
diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh
index d71bc51a6..31b859ecd 100755
--- a/lib/scripts/jquery/update.sh
+++ b/lib/scripts/jquery/update.sh
@@ -8,28 +8,17 @@
# @author Stefan Grönke <stefan@gronke.net>
# @link http://code.jquery.com/
-# Adjust version for jQuery-UI here - there's no good latest link
-JQUI_VERSION='1.12.1'
+# load version infor from external file
+source ./versions
JQUI_HOST="https://code.jquery.com/ui/$JQUI_VERSION"
JQUI_GIT="https://raw.githubusercontent.com/jquery/jquery-ui/$JQUI_VERSION/ui"
-# Adjust version for jQuery here - latest updates slowly
-JQ_VERSION='3.1.1'
-
-# Adjust version for jQuery Migrate
-JQM_VERSION='3.0.0'
-
# load jQuery
-wget -nv http://code.jquery.com/jquery-${JQ_VERSION}.min.js -O jquery.min.js
-wget -nv http://code.jquery.com/jquery-${JQ_VERSION}.js -O jquery.js
-
+wget -nv https://code.jquery.com/jquery-${JQ_VERSION}.min.js -O jquery.min.js
# load jQuery-UI
wget -nv "$JQUI_HOST/jquery-ui.min.js" -O jquery-ui.min.js
-wget -nv "$JQUI_HOST/jquery-ui.js" -O jquery-ui.js
-
# load jQuery Migrate
-wget -nv http://code.jquery.com/jquery-migrate-${JQM_VERSION}.min.js -O jquery-migrate.min.js
-wget -nv http://code.jquery.com/jquery-migrate-${JQM_VERSION}.js -O jquery-migrate.js
+wget -nv https://code.jquery.com/jquery-migrate-${JQM_VERSION}.min.js -O jquery-migrate.min.js
# load the smoothness theme
mkdir -p jquery-ui-theme/images