jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › editDialogCreate repeatContainer.hide() …Bug
Tagged: javascript scheduler editDialog
This topic contains 4 replies, has 3 voices, and was last updated by admin 8 years, 10 months ago.
-
Author
-
editDialogCreate: function (dialog, fields, editAppointment) {
// hide repeat option
fields.repeatContainer.hide();— below group work like its supposed to
fields.statusContainer.hide();
fields.timeZoneContainer.hide();
fields.colorContainer.hide();
———————————-Testing on web: Firefox & Chrome:
1) using your Edit Dialog website example
if you create appointment repeat field is hidden <- OK
if you edit an existing appointment repeat field is visible <- BUG…Thank you
alexdshark, why do you call a bug something which is in your custom code which customizes the Scheduler? Obviously, not everything can be customized and overriden. editDialogCreate is called once. editDialogOpen is called each time. Repeat Container is something which is dynamically displayed so if you want to hide it may be you should do it in the open even. If you would like, you can also disable the dialog, set the editDialog option to false.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Peter,
I call a bug because of the inconsistencies:
See:– this option remains hidden ONLY while in Create, becomes visible in Edit
fields.repeatContainer.hide(); <—–— these group remain hidden under both Create & Edit
fields.statusContainer.hide();
fields.timeZoneContainer.hide();
fields.colorContainer.hide();…I do not have a better name for inconsistency !!!
..Thanks
See your Scheduler – Edit Dialog example in your website.
Its happening in your sample code.
alexdshark, it is not inconsistent and it is definitely not a bug. Actually, it is very logical and expected behavior. Some fields are dynamically shown/hidden because they depend on the type of appointment – repeat, non-repeat. Others fields like subject do not depend on the type of appointment. That is the reason you should handle event such as editDialogOpen, if you want to hide such fields.
.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.