Details
Description
The flipSwitch disabled attribute has no effect. Setting disabled="true" causes the component to render disabled="disabled' on the root anchor tag, which, of course, won't do anything:
<a class="mobi-flipswitch mobi-flipswitch-on ui-btn-down-c" disabled="disabled" id="flipswitchPage:flipswitchForm:cap" name="flipswitchPage:flipswitchForm:cap" onclick="mobi.flipswitch.init('flipswitchPage:flipswitchForm:cap',{ event: event,elVal: this,singleSubmit: true}); return false; " style="float:right">
<span class="mobi-flipswitch-txt-on">ON</span>
<input id="flipswitchPage:flipswitchForm:cap_hidden" name="flipswitchPage:flipswitchForm:cap_hidden" type="hidden" value="true">
<span class="mobi-flipswitch-txt-off ui-btn-up-c">OFF</span>
</a>
<a class="mobi-flipswitch mobi-flipswitch-on ui-btn-down-c" disabled="disabled" id="flipswitchPage:flipswitchForm:cap" name="flipswitchPage:flipswitchForm:cap" onclick="mobi.flipswitch.init('flipswitchPage:flipswitchForm:cap',{ event: event,elVal: this,singleSubmit: true}); return false; " style="float:right">
<span class="mobi-flipswitch-txt-on">ON</span>
<input id="flipswitchPage:flipswitchForm:cap_hidden" name="flipswitchPage:flipswitchForm:cap_hidden" type="hidden" value="true">
<span class="mobi-flipswitch-txt-off ui-btn-up-c">OFF</span>
</a>
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Steve Maryka [ steve.maryka ] | Philip Breau [ philip.breau ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.4 Beta [ 10874 ] | |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #38730 | Wed Nov 06 07:54:34 MST 2013 | philip.breau | - do not render onclick js if disabled="true" - add disabled style class - clean up code - render "disabled='disabled'" on the hidden field, rather than the <a> tag |
Files Changed | ||||
![]() ![]() ![]() |
Fix Version/s | 1.3.1 [ 11376 ] | |
Fix Version/s | 1.4 Beta [ 10874 ] |
Revision: 38730
Author: philip.breau
Date: November-06-13 10:54:34 AM
Message:
MOBI-931FlipSwitch disabled attribute does not workModified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitch.java
Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitchRenderer.java
Modified : /icemobile/trunk/icemobile/resources/themes/base/1_flip-switch.css