make previously added specs green

This commit is contained in:
Florian Staudacher 2012-02-09 01:01:28 +01:00 committed by Maxwell Salzberg
parent 0222e4b2ee
commit 56d9da6e04

View file

@ -21,8 +21,9 @@
}); });
var contents = "#{params[:title]} - #{params[:url]}"; var contents = "#{params[:title]} - #{params[:url]}";
if ("#{params[:notes]}".length > 0){ var notes = "#{escape_javascript params[:notes]}";
contents = contents + " - #{params[:notes]}"; if (notes.length > 0){
contents = contents + " - " + notes;
} }
$("#publisher #status_message_fake_text").val(contents); $("#publisher #status_message_fake_text").val(contents);