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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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 | ||||
MODIFY
/icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitch.java
MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitchRenderer.java MODIFY /icemobile/trunk/icemobile/resources/themes/base/1_flip-switch.css |