]
Tsikhon Kuprevich closed RF-7600.
---------------------------------
Assignee: Tsikhon Kuprevich (was: Pavel Yaschenko)
calendar: doCollapse should invoke oncollapse before closure
timeEditor.
------------------------------------------------------------------------
Key: RF-7600
URL:
https://jira.jboss.org/jira/browse/RF-7600
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.1
Reporter: Ilya Shaikovsky
Assignee: Tsikhon Kuprevich
Priority: Minor
Fix For: 3.3.2.CR1
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246116#...
<script type="text/javascript">
var timeToSelect=false;
</script>
<h:form>
<rich:calendar id="dummy" value="#{dummy}"
popup="true" oncollapse="if (timeToSelect) return false;"
datePattern="MMMM d, yyyy HH:mm" enableManualInput="false"
showApplyButton="false" cellWidth="24px"
cellHeight="22px"
ondateselected="timeToSelect=true;
Richfaces.getComponent('calendar',this).showTimeEditor();return true;"
style="padding: 2px; margin-left: 10px;"
disabled="#{readOnlyMode}" ontimeselected="timeToSelect=false;"
ontimeselected="//close calendar here">
</rich:calendar>
</h:form>
this code should works as he need. but it's not because oncollapse which prevents
closure invokes after timeEditor already closed.
Move invoking the collapse before the closure.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: