Fixes wording/mapping of noty nameing.

This commit is contained in:
Martin Edenhofer 2012-04-24 13:12:46 +02:00
parent 56eb2c19dd
commit 08d3d907f4
2 changed files with 4 additions and 2 deletions

View file

@ -114,7 +114,7 @@ class Index extends App.Controller
# add notify
Spine.trigger 'notify:removeall'
Spine.trigger 'notify', {
type: 'warning',
type: 'error',
msg: 'Wrong Username and Password combination.',
}

View file

@ -20,9 +20,11 @@ class App.Notify extends Spine.Controller
# notify = App.view('notify')(data: data)
# @append( notify )
# match noty naming
# map noty naming
if data['type'] is 'info'
data['type'] = 'information'
if data['type'] is 'warning'
data['type'] = 'alert'
$.noty.closeAll()
$('#notify').noty(