Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

forgot to pull first — this completes the jQuery UI 1.8 patch.

  • Loading branch information...
commit 28c94ccfe8e3c45340c2aaa51a136ad98a7c7f70 1 parent 5be34d2
michael authored
View
2  README.textile
@@ -3,7 +3,7 @@ h2. jQuery UI Multiselect Next (now runs on jQuery UI 1.8)
This is a more advanced but not well tested extended version of the jQuery UI Multiselect widget.
It just got updated to work along with jQuery 1.4.2 and jQuery UI 1.8.
-I've installed a demo page at "http://quasipartikel.at/multiselect_ext/":http://quasipartikel.at/multiselect_ext/
+I've installed a demo page at "http://quasipartikel.at/multiselect_next/":http://quasipartikel.at/multiselect_next/
-
For the original version done by Yanick (which is based on jQuery 1.3 and jQuery UI 1.7) please visit his demo page:
View
17 js/locale/ui.multiselect-de.js
@@ -0,0 +1,17 @@
+/**
+ * Localization strings for the UI Multiselect widget
+ *
+ * @locale de, de-DE
+ */
+
+$.extend($.ui.multiselect.locale, {
+ addAll:'Alle hinzufŸgen',
+ removeAll:'Alle entfernen',
+ itemsCount:'#{count} Elemente gewŠhlt',
+ itemsTotal:'#{count} Elemente gesamt',
+ busy:'Bitte warten...',
+ errorDataFormat:"Option kann nicht hinzugefŸgt werden. Unbekanntes Datenformat.",
+ errorInsertNode:"Es gab ein Problem beim hinzufŸgen des Elements:\n\n\t[#{key}] => #{value}\n\nDer Vorgang wurde abgebrochen.",
+ errorReadonly:"Die Option #{option} ist schreibgeschŸtzt",
+ errorRequest:"Entschuldigung! Es scheint ein Problem mit dem entfernten Aufruf zu geben. (Typ: #{status})"
+});
View
17 js/locale/ui.multiselect-zh-CN.js
@@ -0,0 +1,17 @@
+/**
+ * Localization strings for the UI Multiselect widget
+ *
+ * @locale zh-CN
+ */
+
+$.extend($.ui.multiselect.locale, {
+ addAll:'添加全部',
+ removeAll:'删除全部',
+ itemsCount:'选择 #{count} 项',
+ itemsTotal:'共 #{count} 项',
+ busy:'请等待……',
+ errorDataFormat:"无法添加选项,未知的数据格式",
+ errorInsertNode:"在加入下列条目时发生问题:\n\n\t[#{key}] => #{value}\n\n操作失败。",
+ errorReadonly:"选项 #{option} 是只读的",
+ errorRequest:"抱歉!远程调用似乎有问题。(类型: #{status} )"
+});
View
12 js/ui.multiselect.js
@@ -230,8 +230,8 @@ $.widget("ui.multiselect", {
this._setBusy(true);
// format data
- if (data = this.options.dataParser(data)) {
- var option, elements = [];
+ var elements = [];
+ if (data = this.options.dataParser.call(this, data)) {
for (var key in data) {
// check if the option does not exist already
if (this.element.find('option[value="'+key+'"]').size()==0) {
@@ -273,7 +273,7 @@ $.widget("ui.multiselect", {
case 'sortable':
// readonly options
this._messages(
- $.ui.multiselect.constante.MESSAGE_WARNING,
+ $.ui.multiselect.constants.MESSAGE_WARNING,
$.ui.multiselect.locale.errorReadonly,
{option: key}
);
@@ -446,7 +446,7 @@ $.widget("ui.multiselect", {
setTimeout(function() { _addNode(); }, 1);
} else {
that._messages(
- $.ui.multiselect.constante.MESSAGE_EXCEPTION,
+ $.ui.multiselect.constants.MESSAGE_EXCEPTION,
$.ui.multiselect.locale.errorInsertNode,
{key:node.data('multiselect.optionLink').val(), value:node.text()}
);
@@ -804,7 +804,7 @@ $.widget("ui.multiselect", {
}
});
} catch (e) {
- that._messages($.ui.multiselect.constante.MESSAGE_EXCEPTION, e.message); // error message template ??
+ that._messages($.ui.multiselect.constants.MESSAGE_EXCEPTION, e.message); // error message template ??
that._setBusy(false);
}
} else {
@@ -874,8 +874,6 @@ var _dragHelper = function(event, ui) {
-
-
/****************************
* Settings
****************************/
Please sign in to comment.
Something went wrong with that request. Please try again.