Do not cancel ajax call if widget is removed/closed.
This commit is contained in:
parent
7e99983d2d
commit
d9cfcbbd34
2 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ class Index extends App.Controller
|
|||
new App.FirstStepsClues(
|
||||
el: @el
|
||||
onComplete: =>
|
||||
@ajax(
|
||||
App.Ajax.request(
|
||||
id: 'preferences'
|
||||
type: 'PUT'
|
||||
url: @apiPath + '/users/preferences'
|
||||
|
|
|
@ -1626,6 +1626,7 @@ wait untill text in selector disabppears
|
|||
text = instance.find_elements(css: '.content.active .js-reset')[0].text
|
||||
if !text || text.empty?
|
||||
screenshot(browser: instance, comment: 'ticket_update_ok')
|
||||
sleep 1
|
||||
return true
|
||||
end
|
||||
rescue
|
||||
|
|
Loading…
Reference in a new issue