engine/app/assets/javascripts/locomotive/views/theme_assets/new_view.js.coffee

8 lines
272 B
CoffeeScript
Raw Normal View History

2011-12-07 01:09:13 +00:00
Locomotive.Views.ThemeAssets ||= {}
class Locomotive.Views.ThemeAssets.NewView extends Locomotive.Views.ThemeAssets.FormView
save: (event) ->
@save_in_ajax event,
on_success: (response, xhr) ->
window.location.href = xhr.getResponseHeader('location')