Do not cancel ajax call if widget is removed/closed.

This commit is contained in:
Martin Edenhofer 2016-03-03 17:42:19 +01:00
parent 7e99983d2d
commit d9cfcbbd34
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ class Index extends App.Controller
new App.FirstStepsClues( new App.FirstStepsClues(
el: @el el: @el
onComplete: => onComplete: =>
@ajax( App.Ajax.request(
id: 'preferences' id: 'preferences'
type: 'PUT' type: 'PUT'
url: @apiPath + '/users/preferences' url: @apiPath + '/users/preferences'

View file

@ -1626,6 +1626,7 @@ wait untill text in selector disabppears
text = instance.find_elements(css: '.content.active .js-reset')[0].text text = instance.find_elements(css: '.content.active .js-reset')[0].text
if !text || text.empty? if !text || text.empty?
screenshot(browser: instance, comment: 'ticket_update_ok') screenshot(browser: instance, comment: 'ticket_update_ok')
sleep 1
return true return true
end end
rescue rescue