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(
|
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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue