From: Olivier Lamy Date: Tue, 27 Mar 2012 06:56:03 +0000 (+0000) Subject: declare sortable binding as a module X-Git-Tag: archiva-1.4-M3~929 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6ff0318291a999f1f7a907d096f8f4454a44059;p=archiva.git declare sortable binding as a module git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1305747 13f79535-47bb-0310-9956-ffa450edef68 --- 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