From 4a50925c17e7a52421ec4e96e6456596d9c2efba Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 29 Mar 2016 01:16:44 -0400 Subject: [PATCH] make download function modular --- dashboard-ui/advanced.html | 71 ------------------- dashboard-ui/components/filedownloader.js | 9 +++ dashboard-ui/dashboardgeneral.html | 51 +++++++++++++ .../scripts/advancedconfigurationpage.js | 24 ------- dashboard-ui/scripts/dashboardgeneral.js | 41 +++++++++++ dashboard-ui/scripts/librarylist.js | 13 +++- dashboard-ui/scripts/site.js | 20 ++---- 7 files changed, 118 insertions(+), 111 deletions(-) delete mode 100644 dashboard-ui/advanced.html create mode 100644 dashboard-ui/components/filedownloader.js diff --git a/dashboard-ui/advanced.html b/dashboard-ui/advanced.html deleted file mode 100644 index 5c6e311cae..0000000000 --- a/dashboard-ui/advanced.html +++ /dev/null @@ -1,71 +0,0 @@ -
- -
-
- -
- - -
-
    -
  • -
    - - -
    -
  • -
  • - - - -
  • - -
-
- - -
-
- ${OptionEnableWebClientResponseCache} -
-
-
- ${OptionEnableWebClientResourceMinification} -
-
- ${OptionDisableForDevelopmentHelp} -
-

-
    -
  • - - -
    ${LabelDashboardSourcePathHelp}
    -
  • -
-
- -
-
    -
  • - -
  • - -
-
-
-
-
\ No newline at end of file diff --git a/dashboard-ui/components/filedownloader.js b/dashboard-ui/components/filedownloader.js new file mode 100644 index 0000000000..9460a31e61 --- /dev/null +++ b/dashboard-ui/components/filedownloader.js @@ -0,0 +1,9 @@ +define([], function () { + + return function (items) { + + items.forEach(function (item) { + window.location.href = item.url; + }); + }; +}); \ No newline at end of file diff --git a/dashboard-ui/dashboardgeneral.html b/dashboard-ui/dashboardgeneral.html index 8c2b2238c6..ab626ee70d 100644 --- a/dashboard-ui/dashboardgeneral.html +++ b/dashboard-ui/dashboardgeneral.html @@ -53,6 +53,35 @@ + +
+ +
+

${HeaderBrandingHelp}


@@ -68,6 +97,28 @@
+ + +
+
+ ${OptionEnableWebClientResponseCache} +
+
+
+ ${OptionEnableWebClientResourceMinification} +
+
+ ${OptionDisableForDevelopmentHelp} +
+

+ +