jQWidgets Forums

jQuery UI Widgets Forums Scheduler editDialogCreate repeatContainer.hide() …Bug

This topic contains 4 replies, has 3 voices, and was last updated by  admin 8 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • alexdshark
    Participant

    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


    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    alexdshark
    Participant

    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


    alexdshark
    Participant

    See your Scheduler – Edit Dialog example in your website.

    Its happening in your sample code.


    admin
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.