Sha256: c7db4226cb55889bdf66f33a50b950b85bb78850ba0eea4e90b69598c32dbacc

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

#= require "fullstack/admin/lib/jquery.noty"

$.notify =
  notice: (message) ->
    noty
      text: message
      layout: "topRight"
      type: "success"
      textAlign: "left"
      easing: "swing"
      animateOpen:
        height: "toggle"

      animateClose:
        height: "toggle"

      speed: "500"
      timeout: "10000"
      closable: true
      closeOnSelfClick: true

  error: (message) ->
    noty
      text: message
      layout: "topRight"
      type: "error"
      textAlign: "left"
      easing: "swing"
      animateOpen:
        height: "toggle"

      animateClose:
        height: "toggle"

      speed: "500"
      timeout: "10000"
      closable: true
      closeOnSelfClick: true

  alert: (message) ->
    noty
      text: message
      layout: "topRight"
      type: "alert"
      textAlign: "left"
      easing: "swing"
      animateOpen:
        height: "toggle"

      animateClose:
        height: "toggle"

      speed: "500"
      timeout: "10000"
      closable: true
      closeOnSelfClick: true

  warning: (message) ->
    @.alert(message)

  success: (message) ->
    @.notice(message)


this.notify_notice  = $.notify.notice
this.notify_error   = $.notify.error
this.notify_alert   = $.notify.alert
this.notify_warning = $.notify.warning
this.notify_success = $.notify.success

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fullstack-admin-0.2.26 app/assets/javascripts/fullstack/admin/lib/notify.js.coffee
fullstack-admin-0.2.25 app/assets/javascripts/fullstack/admin/lib/notify.js.coffee
fullstack-admin-0.2.24 app/assets/javascripts/fullstack/admin/lib/notify.js.coffee
fullstack-admin-0.2.23 app/assets/javascripts/fullstack/admin/lib/notify.js.coffee
fullstack-admin-0.2.22 app/assets/javascripts/fullstack/admin/lib/notify.js.coffee