make previously added specs green

This commit is contained in:
Florian Staudacher 2012-02-09 01:01:28 +01:00
parent d965016cf6
commit 9fcc2a4ffa

View file

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