[eGroupWare-svn] r56010 - /trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
[email protected] Wed, 04 May 2016 14:29:44 -0000
| Newsgroups | gmane.comp.web.egroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: hnategh
Date: Wed May 4 16:29:44 2016
New Revision: 56010
URL: http://svn.stylite.de/viewvc/egroupware?rev=56010&view=rev
Log:
Implement set_disabled for select widget with tags enabled
Modified:
trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
Modified: trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js?rev=56010&r1=56009&r2=56010&view=diff
==============================================================================
--- trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js Wed May 4 16:29:44 2016
@@ -832,6 +832,32 @@
{
return this._super.apply(this, arguments);
}
+ },
+
+ /**
+ * override set disabled for tags as the tags using
+ * chosen dom and need to be treated different
+ *
+ * @param {type} _disable
+ * @returns {undefined}
+ */
+ set_disabled: function (_disable)
+ {
+ this._super.apply(this, arguments);
+
+ if (this.options.tags) {
+ // Always hide input options
+ this.input.hide();
+
+ if (_disable)
+ {
+ jQuery(this.node.nextElementSibling).hide();
+ }
+ else
+ {
+ jQuery(this.node.nextElementSibling).show();
+ }
+ }
}
});}).call(this);
et2_register_widget(et2_selectbox, ["menupopup", "listbox", "select", "select-cat",
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z