From d6ff0318291a999f1f7a907d096f8f4454a44059 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 27 Mar 2012 06:56:03 +0000 Subject: [PATCH] declare sortable binding as a module git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1305747 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/knockout-sortable.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-sortable.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-sortable.js index 5b532f1da..1c0f3ddd0 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-sortable.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout-sortable.js @@ -1,4 +1,6 @@ //knockout-sortable | (c) 2012 Ryan Niemeyer | http://www.opensource.org/licenses/mit-license +define("knockout.sortable",["jquery","order!utils","order!knockout"], function() { + (function(ko, $, undefined) { var prepareTemplateOptions = function(valueAccessor) { var result = {}, @@ -133,4 +135,6 @@ ko.bindingHandlers.sortable = { beforeMove: null, options: {} }; -})(ko, jQuery); \ No newline at end of file +})(ko, jQuery); + +}) \ No newline at end of file -- 2.39.5