From 580098041694ee6dcdeeca6b6738fe7210a20a36 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 5 Mar 2013 00:02:36 +0000 Subject: [PATCH] better to use a select2 binding: add it git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1452604 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/knockout.select2.js | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout.select2.js diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout.select2.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout.select2.js new file mode 100644 index 000000000..886b1c447 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/knockout.select2.js @@ -0,0 +1,29 @@ +(function(factory) { + if (typeof define === "function" && define.amd) { + // AMD anonymous module + define("knockout.select2",["jquery","knockout","utils","select2"], factory); + } else { + // No module loader (plain