Sha256: 69af46f333575a3076fe41f71b6eb063b98c2aa7787cdd2cd0e2638ce86055c2
Contents?: true
Size: 516 Bytes
Versions: 37
Compression:
Stored size: 516 Bytes
Contents
$(@).ready( -> $('[data-hook=general_settings_clear_cache] #clear_cache').click -> response = confirm(Spree.translations.are_you_sure) if response $.ajax type: 'POST' url: Spree.routes.clear_cache success: -> show_flash 'success', "Cache was flushed." error: (msg) -> if msg.responseJSON["error"] show_flash 'error', msg.responseJSON["error"] else show_flash 'error', "There was a problem while flushing cache." )
Version data entries
37 entries across 37 versions & 1 rubygems