Fix project lookup. Show error if project transfer fails

This commit is contained in:
Dmitriy Zaporozhets 2012-12-13 18:42:15 +02:00
parent d09873018a
commit 1d156c9c8e
5 changed files with 22 additions and 2 deletions

View file

@ -7,6 +7,12 @@ window.slugify = (text) ->
window.ajaxGet = (url) ->
$.ajax({type: "GET", url: url, dataType: "script"})
window.errorMessage = (message) ->
ehtml = $("<p>")
ehtml.addClass("error_message")
ehtml.html(message)
ehtml
# Disable button if text field is empty
window.disableButtonIfEmptyField = (field_selector, button_selector) ->
field = $(field_selector)