From ec26e280f3416a5fa0e06841066f90888d040e65 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 26 Mar 2012 11:05:06 +0000 Subject: [PATCH] use a versionned named resource for knockout js git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1305307 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/startup.js | 2 +- .../src/main/webapp/js/knockout-debug.js | 3257 ----------------- 2 files changed, 1 insertion(+), 3258 deletions(-) delete mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/startup.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/startup.js index b03e70c63..1f1e983d3 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/startup.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/startup.js @@ -78,7 +78,7 @@ $(function() { .script(buildLoadJsUrl("archiva/utils.js")).wait() .script(buildLoadJsUrl("archiva/i18nload.js")).wait() .script("jquery.cookie.1.0.0.js").wait() - .script(buildLoadJsUrl("knockout-debug.js")).wait() + .script("knockout-2.0.0.debug.js").wait() .script("jquery-ui-1.8.16.custom.min.js").wait() .script(buildLoadJsUrl("jquery.validate.js")).wait() .script("jquery.json-2.3.min.js").wait() diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js deleted file mode 100644 index 781bf4384..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-debug.js +++ /dev/null @@ -1,3257 +0,0 @@ -// Knockout JavaScript library v2.1.0pre -// (c) Steven Sanderson - http://knockoutjs.com/ -// License: MIT (http://www.opensource.org/licenses/mit-license.php) - -(function(window,document,navigator,undefined){ -!function(factory) { - // Support AMD where available and opted in via define.amd.ko - if (typeof define === 'function' && define['amd'] && define['amd']['ko']) { - // Register as an AMD anonymous module - define(['exports'], factory); - } else { - // AMD not in use (e.g., when referenced via aplain "); - }; - - if (jQueryTmplVersion > 0) { - jQuery['tmpl']['tag']['ko_code'] = { - open: "__.push($1 || '');" - }; - jQuery['tmpl']['tag']['ko_with'] = { - open: "with($1) {", - close: "} " - }; - } - }; - - ko.jqueryTmplTemplateEngine.prototype = new ko.templateEngine(); - - // Use this one by default *only if jquery.tmpl is referenced* - var jqueryTmplTemplateEngineInstance = new ko.jqueryTmplTemplateEngine(); - if (jqueryTmplTemplateEngineInstance.jQueryTmplVersion > 0) - ko.setTemplateEngine(jqueryTmplTemplateEngineInstance); - - ko.exportSymbol('jqueryTmplTemplateEngine', ko.jqueryTmplTemplateEngine); -})();}); -})(window,document,navigator); \ No newline at end of file -- 2.39.5