From 44d37d7eee0911b824f03f1706490ced7f7efb7e Mon Sep 17 00:00:00 2001 From: Jeremy Goecks Date: Tue, 21 Aug 2012 15:52:50 -0400 Subject: [PATCH] Move most jQuery files into own libs directory. --- static/scripts/jquery.event.drag.js.patch | 10 ---------- static/scripts/{ => libs/jquery}/jqtouch.js | 0 .../{ => libs/jquery}/jquery.autocomplete.js | 0 static/scripts/{ => libs/jquery}/jquery.cookie.js | 0 .../scripts/{ => libs/jquery}/jquery.dynatree.js | 0 .../scripts/{ => libs/jquery}/jquery.event.drag.js | 0 .../scripts/{ => libs/jquery}/jquery.event.drop.js | 0 .../{ => libs/jquery}/jquery.event.hover.js | 0 static/scripts/{ => libs/jquery}/jquery.form.js | 0 static/scripts/{ => libs/jquery}/jquery.js | 0 .../scripts/{ => libs/jquery}/jquery.mousewheel.js | 0 static/scripts/{ => libs/jquery}/jquery.rating.js | 0 static/scripts/{ => libs/jquery}/jquery.tipsy.js | 0 .../{ => libs/jquery}/jquery.ui.sortable.slider.js | 0 .../scripts/{ => libs/jquery}/jquery.wymeditor.js | 0 static/scripts/{ => libs/jquery}/jstorage.js | 0 static/scripts/packed/{ => libs/jquery}/jqtouch.js | 0 .../{ => libs/jquery}/jquery.autocomplete.js | 0 .../packed/{ => libs/jquery}/jquery.cookie.js | 0 .../packed/{ => libs/jquery}/jquery.dynatree.js | 0 .../packed/{ => libs/jquery}/jquery.event.drag.js | 0 .../packed/{ => libs/jquery}/jquery.event.drop.js | 0 .../packed/{ => libs/jquery}/jquery.event.hover.js | 0 .../packed/{ => libs/jquery}/jquery.form.js | 0 static/scripts/packed/{ => libs/jquery}/jquery.js | 0 .../packed/{ => libs/jquery}/jquery.mousewheel.js | 0 .../packed/{ => libs/jquery}/jquery.rating.js | 0 .../packed/{ => libs/jquery}/jquery.tipsy.js | 0 .../{ => libs/jquery}/jquery.ui.sortable.slider.js | 0 .../packed/{ => libs/jquery}/jquery.wymeditor.js | 0 .../scripts/packed/{ => libs/jquery}/jstorage.js | 0 templates/admin/data_admin/data_form.mako | 2 +- templates/admin/data_admin/generic_error.mako | 2 +- templates/admin/data_admin/local_data.mako | 2 +- .../requests/select_datasets_to_transfer.mako | 2 +- .../tool_shed_repository/browse_repository.mako | 2 +- .../browse_tool_dependency.mako | 2 +- templates/base.mako | 2 +- templates/base_panels.mako | 4 ++-- templates/dataset/copy_view.mako | 2 +- templates/dataset/edit_attributes.mako | 2 +- templates/display_base.mako | 6 +++--- templates/form.mako | 2 +- templates/grid_base.mako | 2 +- templates/history/view.mako | 2 +- templates/library/common/browse_library.mako | 2 +- .../common/import_datasets_to_histories.mako | 2 +- templates/library/common/ldda_edit_info.mako | 2 +- .../common/library_dataset_search_results.mako | 2 +- templates/library/common/move_library_item.mako | 2 +- templates/library/common/upload.mako | 2 +- templates/mobile/index.mako | 4 ++-- templates/page/editor.mako | 4 ++-- templates/requests/common/create_request.mako | 2 +- templates/requests/common/find_samples.mako | 2 +- templates/root/history.mako | 2 +- templates/tool_form.mako | 2 +- templates/tracks/browser.mako | 2 +- templates/visualization/sweepster.mako | 2 +- templates/webapps/community/admin/index.mako | 2 +- templates/webapps/community/index.mako | 2 +- .../community/repository/browse_repository.mako | 2 +- .../community/repository/manage_repository.mako | 2 +- .../repository/preview_tools_in_changeset.mako | 2 +- .../community/repository/rate_repository.mako | 2 +- templates/webapps/community/repository/upload.mako | 4 ++-- .../community/repository/view_changelog.mako | 2 +- .../community/repository/view_changeset.mako | 2 +- .../community/repository/view_repository.mako | 2 +- templates/webapps/galaxy/admin/index.mako | 2 +- templates/webapps/reports/index.mako | 2 +- templates/workflow/edit_attributes.mako | 2 +- templates/workflow/editor.mako | 14 +++++++------- templates/workflow/run.mako | 2 +- 74 files changed, 55 insertions(+), 65 deletions(-) delete mode 100644 static/scripts/jquery.event.drag.js.patch rename static/scripts/{ => libs/jquery}/jqtouch.js (100%) rename static/scripts/{ => libs/jquery}/jquery.autocomplete.js (100%) rename static/scripts/{ => libs/jquery}/jquery.cookie.js (100%) rename static/scripts/{ => libs/jquery}/jquery.dynatree.js (100%) rename static/scripts/{ => libs/jquery}/jquery.event.drag.js (100%) rename static/scripts/{ => libs/jquery}/jquery.event.drop.js (100%) rename static/scripts/{ => libs/jquery}/jquery.event.hover.js (100%) rename static/scripts/{ => libs/jquery}/jquery.form.js (100%) rename static/scripts/{ => libs/jquery}/jquery.js (100%) rename static/scripts/{ => libs/jquery}/jquery.mousewheel.js (100%) rename static/scripts/{ => libs/jquery}/jquery.rating.js (100%) rename static/scripts/{ => libs/jquery}/jquery.tipsy.js (100%) rename static/scripts/{ => libs/jquery}/jquery.ui.sortable.slider.js (100%) rename static/scripts/{ => libs/jquery}/jquery.wymeditor.js (100%) rename static/scripts/{ => libs/jquery}/jstorage.js (100%) rename static/scripts/packed/{ => libs/jquery}/jqtouch.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.autocomplete.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.cookie.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.dynatree.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.event.drag.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.event.drop.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.event.hover.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.form.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.mousewheel.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.rating.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.tipsy.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.ui.sortable.slider.js (100%) rename static/scripts/packed/{ => libs/jquery}/jquery.wymeditor.js (100%) rename static/scripts/packed/{ => libs/jquery}/jstorage.js (100%) diff --git a/static/scripts/jquery.event.drag.js.patch b/static/scripts/jquery.event.drag.js.patch deleted file mode 100644 index 1c5178021e0..00000000000 --- a/static/scripts/jquery.event.drag.js.patch +++ /dev/null @@ -1,10 +0,0 @@ -96c96 -< if ( drag.dragging ){ ---- -> if ( drag.dragging ) { -99c99,101 -< } ---- -> } else { -> hijack( event, "dragclickonly", elem ); -> } diff --git a/static/scripts/jqtouch.js b/static/scripts/libs/jquery/jqtouch.js similarity index 100% rename from static/scripts/jqtouch.js rename to static/scripts/libs/jquery/jqtouch.js diff --git a/static/scripts/jquery.autocomplete.js b/static/scripts/libs/jquery/jquery.autocomplete.js similarity index 100% rename from static/scripts/jquery.autocomplete.js rename to static/scripts/libs/jquery/jquery.autocomplete.js diff --git a/static/scripts/jquery.cookie.js b/static/scripts/libs/jquery/jquery.cookie.js similarity index 100% rename from static/scripts/jquery.cookie.js rename to static/scripts/libs/jquery/jquery.cookie.js diff --git a/static/scripts/jquery.dynatree.js b/static/scripts/libs/jquery/jquery.dynatree.js similarity index 100% rename from static/scripts/jquery.dynatree.js rename to static/scripts/libs/jquery/jquery.dynatree.js diff --git a/static/scripts/jquery.event.drag.js b/static/scripts/libs/jquery/jquery.event.drag.js similarity index 100% rename from static/scripts/jquery.event.drag.js rename to static/scripts/libs/jquery/jquery.event.drag.js diff --git a/static/scripts/jquery.event.drop.js b/static/scripts/libs/jquery/jquery.event.drop.js similarity index 100% rename from static/scripts/jquery.event.drop.js rename to static/scripts/libs/jquery/jquery.event.drop.js diff --git a/static/scripts/jquery.event.hover.js b/static/scripts/libs/jquery/jquery.event.hover.js similarity index 100% rename from static/scripts/jquery.event.hover.js rename to static/scripts/libs/jquery/jquery.event.hover.js diff --git a/static/scripts/jquery.form.js b/static/scripts/libs/jquery/jquery.form.js similarity index 100% rename from static/scripts/jquery.form.js rename to static/scripts/libs/jquery/jquery.form.js diff --git a/static/scripts/jquery.js b/static/scripts/libs/jquery/jquery.js similarity index 100% rename from static/scripts/jquery.js rename to static/scripts/libs/jquery/jquery.js diff --git a/static/scripts/jquery.mousewheel.js b/static/scripts/libs/jquery/jquery.mousewheel.js similarity index 100% rename from static/scripts/jquery.mousewheel.js rename to static/scripts/libs/jquery/jquery.mousewheel.js diff --git a/static/scripts/jquery.rating.js b/static/scripts/libs/jquery/jquery.rating.js similarity index 100% rename from static/scripts/jquery.rating.js rename to static/scripts/libs/jquery/jquery.rating.js diff --git a/static/scripts/jquery.tipsy.js b/static/scripts/libs/jquery/jquery.tipsy.js similarity index 100% rename from static/scripts/jquery.tipsy.js rename to static/scripts/libs/jquery/jquery.tipsy.js diff --git a/static/scripts/jquery.ui.sortable.slider.js b/static/scripts/libs/jquery/jquery.ui.sortable.slider.js similarity index 100% rename from static/scripts/jquery.ui.sortable.slider.js rename to static/scripts/libs/jquery/jquery.ui.sortable.slider.js diff --git a/static/scripts/jquery.wymeditor.js b/static/scripts/libs/jquery/jquery.wymeditor.js similarity index 100% rename from static/scripts/jquery.wymeditor.js rename to static/scripts/libs/jquery/jquery.wymeditor.js diff --git a/static/scripts/jstorage.js b/static/scripts/libs/jquery/jstorage.js similarity index 100% rename from static/scripts/jstorage.js rename to static/scripts/libs/jquery/jstorage.js diff --git a/static/scripts/packed/jqtouch.js b/static/scripts/packed/libs/jquery/jqtouch.js similarity index 100% rename from static/scripts/packed/jqtouch.js rename to static/scripts/packed/libs/jquery/jqtouch.js diff --git a/static/scripts/packed/jquery.autocomplete.js b/static/scripts/packed/libs/jquery/jquery.autocomplete.js similarity index 100% rename from static/scripts/packed/jquery.autocomplete.js rename to static/scripts/packed/libs/jquery/jquery.autocomplete.js diff --git a/static/scripts/packed/jquery.cookie.js b/static/scripts/packed/libs/jquery/jquery.cookie.js similarity index 100% rename from static/scripts/packed/jquery.cookie.js rename to static/scripts/packed/libs/jquery/jquery.cookie.js diff --git a/static/scripts/packed/jquery.dynatree.js b/static/scripts/packed/libs/jquery/jquery.dynatree.js similarity index 100% rename from static/scripts/packed/jquery.dynatree.js rename to static/scripts/packed/libs/jquery/jquery.dynatree.js diff --git a/static/scripts/packed/jquery.event.drag.js b/static/scripts/packed/libs/jquery/jquery.event.drag.js similarity index 100% rename from static/scripts/packed/jquery.event.drag.js rename to static/scripts/packed/libs/jquery/jquery.event.drag.js diff --git a/static/scripts/packed/jquery.event.drop.js b/static/scripts/packed/libs/jquery/jquery.event.drop.js similarity index 100% rename from static/scripts/packed/jquery.event.drop.js rename to static/scripts/packed/libs/jquery/jquery.event.drop.js diff --git a/static/scripts/packed/jquery.event.hover.js b/static/scripts/packed/libs/jquery/jquery.event.hover.js similarity index 100% rename from static/scripts/packed/jquery.event.hover.js rename to static/scripts/packed/libs/jquery/jquery.event.hover.js diff --git a/static/scripts/packed/jquery.form.js b/static/scripts/packed/libs/jquery/jquery.form.js similarity index 100% rename from static/scripts/packed/jquery.form.js rename to static/scripts/packed/libs/jquery/jquery.form.js diff --git a/static/scripts/packed/jquery.js b/static/scripts/packed/libs/jquery/jquery.js similarity index 100% rename from static/scripts/packed/jquery.js rename to static/scripts/packed/libs/jquery/jquery.js diff --git a/static/scripts/packed/jquery.mousewheel.js b/static/scripts/packed/libs/jquery/jquery.mousewheel.js similarity index 100% rename from static/scripts/packed/jquery.mousewheel.js rename to static/scripts/packed/libs/jquery/jquery.mousewheel.js diff --git a/static/scripts/packed/jquery.rating.js b/static/scripts/packed/libs/jquery/jquery.rating.js similarity index 100% rename from static/scripts/packed/jquery.rating.js rename to static/scripts/packed/libs/jquery/jquery.rating.js diff --git a/static/scripts/packed/jquery.tipsy.js b/static/scripts/packed/libs/jquery/jquery.tipsy.js similarity index 100% rename from static/scripts/packed/jquery.tipsy.js rename to static/scripts/packed/libs/jquery/jquery.tipsy.js diff --git a/static/scripts/packed/jquery.ui.sortable.slider.js b/static/scripts/packed/libs/jquery/jquery.ui.sortable.slider.js similarity index 100% rename from static/scripts/packed/jquery.ui.sortable.slider.js rename to static/scripts/packed/libs/jquery/jquery.ui.sortable.slider.js diff --git a/static/scripts/packed/jquery.wymeditor.js b/static/scripts/packed/libs/jquery/jquery.wymeditor.js similarity index 100% rename from static/scripts/packed/jquery.wymeditor.js rename to static/scripts/packed/libs/jquery/jquery.wymeditor.js diff --git a/static/scripts/packed/jstorage.js b/static/scripts/packed/libs/jquery/jstorage.js similarity index 100% rename from static/scripts/packed/jstorage.js rename to static/scripts/packed/libs/jquery/jstorage.js diff --git a/templates/admin/data_admin/data_form.mako b/templates/admin/data_admin/data_form.mako index 1ed3e25f3c3..dde487ff86d 100644 --- a/templates/admin/data_admin/data_form.mako +++ b/templates/admin/data_admin/data_form.mako @@ -27,7 +27,7 @@ <%def name="javascripts()"> ${parent.javascripts()} - ${h.js("jquery.autocomplete", "autocomplete_tagging" )} + ${h.js("libs/jquery/jquery.autocomplete", "autocomplete_tagging" )} ## ## Override methods from base.mako and base_panels.mako diff --git a/templates/admin/data_admin/generic_error.mako b/templates/admin/data_admin/generic_error.mako index 2c70ed051df..fd46c54c927 100644 --- a/templates/admin/data_admin/generic_error.mako +++ b/templates/admin/data_admin/generic_error.mako @@ -27,7 +27,7 @@ <%def name="javascripts()"> ${parent.javascripts()} - ${h.js("jquery.autocomplete", "autocomplete_tagging" )} + ${h.js("libs/jquery/jquery.autocomplete", "autocomplete_tagging" )} ## ## Override methods from base.mako and base_panels.mako diff --git a/templates/admin/data_admin/local_data.mako b/templates/admin/data_admin/local_data.mako index 84f0f9e650c..256d9e47377 100644 --- a/templates/admin/data_admin/local_data.mako +++ b/templates/admin/data_admin/local_data.mako @@ -27,7 +27,7 @@ <%def name="javascripts()"> ${parent.javascripts()} - ${h.js("jquery.autocomplete", "autocomplete_tagging" )} + ${h.js("libs/jquery/jquery.autocomplete", "autocomplete_tagging" )} ## ## Override methods from base.mako and base_panels.mako diff --git a/templates/admin/requests/select_datasets_to_transfer.mako b/templates/admin/requests/select_datasets_to_transfer.mako index 991d9f76c1b..011636ed718 100644 --- a/templates/admin/requests/select_datasets_to_transfer.mako +++ b/templates/admin/requests/select_datasets_to_transfer.mako @@ -8,7 +8,7 @@ ${common_javascripts()} -${h.js( "ui.core", "jquery.cookie", "jquery.dynatree" )} +${h.js( "ui.core", "libs/jquery/jquery.cookie", "libs/jquery/jquery.dynatree" )} ${h.css( "dynatree_skin/ui.dynatree" )} - + + -${h.js( "galaxy.base", "galaxy.panels", "json2", "jquery", "bootstrap", "jstorage", "jquery.event.drag", "jquery.event.hover","jquery.mousewheel", "jquery.autocomplete", "mvc/data", "viz/visualization", "viz/trackster", "viz/trackster_ui", "jquery.ui.sortable.slider", "farbtastic" )} +${h.js( "galaxy.base", "galaxy.panels", "json2", "libs/jquery/jquery", "bootstrap", "libs/jquery/jstorage", "libs/jquery/jquery.event.drag", "libs/jquery/jquery.event.hover","libs/jquery/jquery.mousewheel", "libs/jquery/jquery.autocomplete", "mvc/data", "viz/visualization", "viz/trackster", "viz/trackster_ui", "libs/jquery/jquery.ui.sortable.slider", "farbtastic" )} - ${h.js( "jquery", + ${h.js( "libs/jquery/jquery", "bootstrap", - "jquery.event.drag", - "jquery.event.drop", - "jquery.event.hover", - "jquery.form", + "libs/jquery/jquery.event.drag", + "libs/jquery/jquery.event.drop", + "libs/jquery/jquery.event.hover", + "libs/jquery/jquery.form", "json2", - "jstorage", + "libs/jquery/jstorage", "galaxy.base", "galaxy.workflow_editor.canvas", - "jquery.autocomplete", + "libs/jquery/jquery.autocomplete", "autocomplete_tagging")}