Delay refresh when task add/edit dialog visible #2

Merged
merged 1 commit into from Mar 11, 2014
Commits on Mar 11, 2014
  1. Delay refresh when task add/edit dialog visible

    Matthew Holden
    Matthew Holden committed Mar 11, 2014
    Modifies auto-refresh to postpone the call to `window.location.reload()`
    if the DOM contains a div matching `div.workitem-dialog`. In this case,
    we re-test every 5 seconds to see if the dialog has closed.
    
    ***
    
    I think the extension should CTFO if the user is potentially
    adding/updating a task.