[bugzilla-gnome-org-extensions] IE compat don't use val(null)



commit bde726d3ee1ee2412032c0d2b8b6dbef25c4d073
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Oct 10 17:45:43 2009 -0400

    IE compat don't use val(null)
    
    Setting the value of a textarea null in IE7 results in the
    literal 'null' rather than an empty text area.

 js/splinter.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/splinter.js b/js/splinter.js
index ce92215..63b3c15 100644
--- a/js/splinter.js
+++ b/js/splinter.js
@@ -921,7 +921,7 @@ function start(xml) {
         $("#emptyCommentNotice").hide();
 
     $("#myComment")
-        .val(theReview.intro)
+        .val(theReview.intro ? theReview.intro : "")
         .focus(function() {
                    $("#emptyCommentNotice").hide();
                })


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]