app/assets/javascripts/annex/jquery.redactor.save.js in annex-cms-0.3.8 vs app/assets/javascripts/annex/jquery.redactor.save.js in annex-cms-0.4.0

- old
+ new

@@ -4,10 +4,11 @@ { return { init: function() { var button = this.button.add('save', 'Save'); + this.button.setAwesome('save', 'fa-floppy-o'); this.button.addCallback(button, this.save.content); save_shortcut = $.proxy(function(e){ var editor_active = this.$editor.hasClass('redactor-editor'); @@ -36,20 +37,11 @@ route = this.$editor.attr('data-route'), identifier = this.$editor.attr('data-identifier'), html_content = {}; var callback = $.proxy(function() { - var $this = this; - var editor = this.$editor; - - editor.addClass('saved') - .delay(1000) - .queue(function(next){ - $(this).removeClass('saved'); - next(); - }); - - setTimeout(function(){ $this.core.destroy(); }, 2000); + alert('Saved Content'); + this.core.destroy(); }, this); html_content[identifier] = this.code.get(); $.ajax({