Adjust indentation to make coffeescript happy

This commit is contained in:
David Baumgold
2013-06-26 11:35:27 -04:00
parent 8bfcbb6675
commit 1fee805c9a

View File

@@ -19,15 +19,15 @@ $ ->
if ajaxSettings.notifyOnError is false
return
if jqXHR.responseText
try
message = JSON.parse(jqXHR.responseText).error
catch
message = _.str.truncate(jqXHR.responseText, 300)
try
message = JSON.parse(jqXHR.responseText).error
catch
message = _.str.truncate(jqXHR.responseText, 300)
else
message = gettext("This may be happening because of an error with our server or your internet connection. Try refreshing the page or making sure you are online.")
message = gettext("This may be happening because of an error with our server or your internet connection. Try refreshing the page or making sure you are online.")
msg = new CMS.Views.Notification.Error(
"title": gettext("Studio's having trouble saving your work")
"message": message
"title": gettext("Studio's having trouble saving your work")
"message": message
)
msg.show()