Show actions right now after updating first item.
This commit is contained in:
parent
96d6d94778
commit
9570aeeeff
1 changed files with 7 additions and 7 deletions
|
@ -92,9 +92,9 @@ class Index extends App.ControllerContent
|
||||||
data: JSON.stringify(locale: locale)
|
data: JSON.stringify(locale: locale)
|
||||||
processData: false
|
processData: false
|
||||||
success: (data, status, xhr) =>
|
success: (data, status, xhr) =>
|
||||||
@hideAction()
|
|
||||||
App.Event.trigger('i18n:translation_todo_reload')
|
App.Event.trigger('i18n:translation_todo_reload')
|
||||||
App.Event.trigger('i18n:translation_list_reload')
|
App.Event.trigger('i18n:translation_list_reload')
|
||||||
|
@hideAction()
|
||||||
@modal.hide()
|
@modal.hide()
|
||||||
error: =>
|
error: =>
|
||||||
@modal.hide()
|
@modal.hide()
|
||||||
|
@ -119,9 +119,9 @@ class Index extends App.ControllerContent
|
||||||
data: JSON.stringify(locale: locale)
|
data: JSON.stringify(locale: locale)
|
||||||
processData: false
|
processData: false
|
||||||
success: (data, status, xhr) =>
|
success: (data, status, xhr) =>
|
||||||
@hideAction()
|
|
||||||
App.Event.trigger('i18n:translation_todo_reload')
|
App.Event.trigger('i18n:translation_todo_reload')
|
||||||
App.Event.trigger('i18n:translation_list_reload')
|
App.Event.trigger('i18n:translation_list_reload')
|
||||||
|
@hideAction()
|
||||||
@modal.hide()
|
@modal.hide()
|
||||||
error: =>
|
error: =>
|
||||||
@modal.hide()
|
@modal.hide()
|
||||||
|
@ -346,11 +346,10 @@ class TranslationList extends App.Controller
|
||||||
|
|
||||||
update: (e) ->
|
update: (e) ->
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
@hasChanges = true
|
id = $( e.target ).data('id')
|
||||||
id = $( e.target ).data('id')
|
source = $( e.target ).data('source')
|
||||||
source = $( e.target ).data('source')
|
format = $( e.target ).data('format')
|
||||||
format = $( e.target ).data('format')
|
target = $( e.target ).val()
|
||||||
target = $( e.target ).val()
|
|
||||||
|
|
||||||
# local update
|
# local update
|
||||||
@updateRow(id)
|
@updateRow(id)
|
||||||
|
@ -379,6 +378,7 @@ class TranslationList extends App.Controller
|
||||||
reset = field.closest('tr').find('.js-Reset')
|
reset = field.closest('tr').find('.js-Reset')
|
||||||
if current isnt initial
|
if current isnt initial
|
||||||
@changesAvailable = true
|
@changesAvailable = true
|
||||||
|
@showAction()
|
||||||
reset.show()
|
reset.show()
|
||||||
reset.closest('tr').addClass('warning')
|
reset.closest('tr').addClass('warning')
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue