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
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