Sha256: bed7d3890da417176ff927ed383bb02aac4e7e357a10f12125716459a884d9d5

Contents?: true

Size: 1.27 KB

Versions: 66

Compression:

Stored size: 1.27 KB

Contents

//= require 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

66 entries across 66 versions & 1 rubygems

Version Path
fullstack-admin-0.1.10 vendor/assets/javascripts/notify.js.coffee
fullstack-admin-0.1.8 vendor/assets/javascripts/notify.js.coffee
fullstack-admin-0.1.7 vendor/assets/javascripts/notify.js.coffee
fullstack-admin-0.1.5 vendor/assets/javascripts/notify.js.coffee
fullstack-admin-0.1.3 vendor/assets/javascripts/notify.js.coffee
fullstack-admin-0.1.1 vendor/assets/javascripts/notify.js.coffee