From f0cfe83e3725f9a3928da97a6e3085e79cb25309 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 10:26:24 +0400 Subject: upgrade dojo to 1.8.3 (refs #570) --- lib/dijit/form/MultiSelect.js.uncompressed.js | 134 ++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 lib/dijit/form/MultiSelect.js.uncompressed.js (limited to 'lib/dijit/form/MultiSelect.js.uncompressed.js') diff --git a/lib/dijit/form/MultiSelect.js.uncompressed.js b/lib/dijit/form/MultiSelect.js.uncompressed.js new file mode 100644 index 000000000..4686e5c75 --- /dev/null +++ b/lib/dijit/form/MultiSelect.js.uncompressed.js @@ -0,0 +1,134 @@ +define("dijit/form/MultiSelect", [ + "dojo/_base/array", // array.indexOf, array.map + "dojo/_base/declare", // declare + "dojo/dom-geometry", // domGeometry.setMarginBox + "dojo/query", // query + "./_FormValueWidget" +], function(array, declare, domGeometry, query, _FormValueWidget){ + +// module: +// dijit/form/MultiSelect + +return declare("dijit.form.MultiSelect", _FormValueWidget, { + // summary: + // Widget version of a `", + + addSelected: function(/*dijit/form/MultiSelect*/ select){ + // summary: + // Move the selected nodes of a passed Select widget + // instance to this Select widget. + // + // example: + // | // move all the selected values from "bar" to "foo" + // | dijit.byId("foo").addSelected(dijit.byId("bar")); + + select.getSelected().forEach(function(n){ + if(this.restoreOriginalText){ + n.text = this.enforceTextDirWithUcc(this.restoreOriginalText(n), n.text); + } + this.containerNode.appendChild(n); + // scroll to bottom to see item + // cannot use scrollIntoView since