Changes between Initial Version and Version 3 of Ticket #15801


Ignore:
Timestamp:
Aug 2, 2012, 10:55:43 PM (8 years ago)
Author:
bill
Comment:

Yes, it makes sense to set refocus:false if you want to send the focus somewhere else than the button that displayed the dialog.

But also, you probably should be waiting until the Dialog finishes hiding before doing anything, so you should be connecting to onHide not onCancel.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15801

    • Property Status changed from new to closed
    • Property Component changed from General to Dijit
    • Property Resolution changed from to invalid
    • Property Summary changed from Dojo dijit.Dialog | Problem in window.location.hash in onCancel method to Dialog: problem in window.location.hash in onCancel method
  • Ticket #15801 – Description

    initial v3  
    33whenever user closes the dojo dialog , user should be anchored or scrolled to a particular section of that page.
    44
     5{{{
    56OnCancel:function(){
    67  window.location.hash="sectionmarker";
    78}
     9}}}
    810
    911The problem is the above code is moving the screen to the hashed section(section marker) which is fine , but then after immediately it is moving/scrolling the screen  back to intial state.