Using modules that add the attribute "disabled=disabled" at Text-input the Arrow-button should be disabled too. Instead of this, it pop-ups the List and when you select an item from list Text-input is being updated.
So... editing the autocomplete_deluxe.js
I replaced
parent.mousedown(function() {
if (parent.hasClass('autocomplete-deluxe-single-open')) {
jqObject.autocomplete('close');
} else {
jqObject.autocomplete('search', '');
}
});With
parent.mousedown(function() {
if (parent.hasClass('autocomplete-deluxe-single-open')) {
jqObject.autocomplete('close');
} else if (parent.children('input.autocomplete-deluxe-form').attr('disabled') == false) {
jqObject.autocomplete('search', '');
}
});| Comment | File | Size | Author |
|---|---|---|---|
| #3 | acdx_disabled.png | 5.55 KB | sepgil |
| #3 | 1777276-disabled2.patch | 3.09 KB | sepgil |
| #2 | acdx.png | 5.09 KB | mojiro |
| #1 | 1777276-disabled.patch | 686 bytes | sepgil |
Comments
Comment #1
sepgil commentedYour hack only works for single value widgets, but we should ensure that it works for all type of widgets.
This patch should work, but we should also somehow visualize that the widget is disabled, before I commit anything.
Comment #2
mojiro commentedI will suggest a simple grey color for widget background.
The same does the simple reference widget.
Comment #3
sepgil commentedHow do like this style?
Comment #4
sepgil commentedComment #5
mojiro commentedSeems very nice, I will apply the patch to ensure that.
Comment #6
sepgil commentedHas anyone tried this out? If yes, please post your results so I can commit the patch.
Comment #7
rajab natshah