add error message when invite people failed

This commit is contained in:
2012-11-27 15:37:11 +08:00
parent f73932f9a8
commit a42e7ffb28
+6 -1
View File
@@ -40,6 +40,11 @@ $ ->
setTimeout ()->
node.hide('slow').remove()
,4000
error: ->
node = $('<div></div>').addClass('alert').addClass('alert-error').text 'Sorry,there are some errors occured.'
node.insertBefore('p.alert.alert-info')
setTimeout ()->
node.hide('slow').remove()
,4000
$('.do-add').click ->
$('.add-member-form').ajaxSubmit options