From e2e2bdf69c83621ecd5fc3a7512a12d73b75cddd Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Sat, 8 Oct 2011 00:00:52 -0200 Subject: [PATCH] Select correct publisher textarea With previous css selector two textareas where returned, causes reset of the post text when selecting new aspects for the second time on the left nav. Related to #2102 --- public/javascripts/widgets/aspect-navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/widgets/aspect-navigation.js b/public/javascripts/widgets/aspect-navigation.js index 2b7c12186..7d7d9b7d2 100644 --- a/public/javascripts/widgets/aspect-navigation.js +++ b/public/javascripts/widgets/aspect-navigation.js @@ -100,7 +100,7 @@ }; this.performAjax = function() { - var post = $("#publisher textarea").val(), + var post = $("#publisher textarea#status_message_fake_text").val(), newURL = self.generateURL(), photos = {}; @@ -118,7 +118,7 @@ } self.jXHR = $.getScript(newURL, function(data) { - var textarea = $("#publisher textarea"), + var textarea = $("#publisher textarea#status_message_fake_text"), photozone = $("#photodropzone"); if( post !== "" ) {