Sha256: 2284529c487d8fd294878b92af544f46d1f13ff72be04f83208b8d5951a3cb89

Contents?: true

Size: 598 Bytes

Versions: 3

Compression:

Stored size: 598 Bytes

Contents

var notification = function(msg) {noty({text: msg,layout: 'bottomRight',type: 'alert',dismissQueue: true,animation: {open: 'animated tada',close: 'bounceOutRight',easing: 'swing',speed: 500},timeout: 5000,callback: {afterShow: function() {$.noty.closeAll()}}})};

- case action_name
	- when "create"
		notification("#{controller_name.humanize.singularize} creado satisfactoriamente.")
	- when "update"
		notification("#{controller_name.humanize.singularize} actualizado satisfactoriamente.")
	- when "destroy"
		notification("#{controller_name.humanize.singularize} eliminado satisfactoriamente.")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keppler-2.0.2 installer/core/app/views/admin/layouts/index/remote_messages.js.haml
keppler-2.0.1 installer/core/app/views/admin/layouts/index/remote_messages.js.haml
keppler-2.0.0 installer/core/app/views/admin/layouts/index/remote_messages.js.haml