diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-02-03 12:50:11 -0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-02-03 12:50:11 -0800 |
commit | cc4bb766fdac23358d7b586aa3830b9650eed7a8 (patch) | |
tree | a8a54ee1e5560b8166809e8f1906d7d087295ae4 /lib/scripts/jquery/update.sh | |
parent | b75f4cc2b25d0b6587df71ce6a246882e36ff10b (diff) | |
parent | 192151b74b6b77cce79e36afd94200c50437085e (diff) | |
download | dokuwiki-cc4bb766fdac23358d7b586aa3830b9650eed7a8.tar.gz dokuwiki-cc4bb766fdac23358d7b586aa3830b9650eed7a8.zip |
Merge pull request #163 from splitbrain/jquery1.9
Update to JQuery 1.9
Diffstat (limited to 'lib/scripts/jquery/update.sh')
-rwxr-xr-x | lib/scripts/jquery/update.sh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/scripts/jquery/update.sh b/lib/scripts/jquery/update.sh index fde46f4d7..3bc2c761e 100755 --- a/lib/scripts/jquery/update.sh +++ b/lib/scripts/jquery/update.sh @@ -5,24 +5,22 @@ # It also loads the 'smoothness' jQuery-UI theme and all referenced images. # # @author Andreas Gohr <andi@splitbrain.org> +# @author Stefan Grönke <stefan@gronke.net> # @link https://code.google.com/apis/libraries/devguide.html#jquery - + # load jQuery wget -nv https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js -O jquery.min.js wget -nv https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js -O jquery.js - + # load jQuery-UI wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js -O jquery-ui.min.js wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js -O jquery-ui.js - + # load the smoothness theme mkdir -p jquery-ui-theme/images -wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css -O jquery-ui-theme/smoothness.css +wget -nv -qO- https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css | sed "s/font-family:[^;]*;//" > jquery-ui-theme/smoothness.css images=`gawk 'match($0, /url\((images\/[^\)]+)\)/, m) { print m[1] }' jquery-ui-theme/smoothness.css` for img in $images do wget -nv https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/$img -O jquery-ui-theme/$img -done - -# remove font family declarations from smoothness CSS -sed -i "s/font-family:[^;]*; \?//" jquery-ui-theme/smoothness.css +done
\ No newline at end of file |