Make sure both update.bml and editjournal.bml have this piece of 
JavaScript

        Patch by afuna. 

diffs (34 lines):

diff -r 93abaa71d878 -r ec28cc4ade7b cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl Mon Jun 01 14:59:25 2009 +0000
+++ b/cgi-bin/weblib.pl Sat Jun 06 03:48:12 2009 +0000
@@ -1065,9 +1065,13 @@ sub entry_form {
                     //--></script>
                     };
 
+                my $thumbnail_text = BML::ml( 
'/update.bml.link.view_thumbnails' );
                 $$head .= qq {
                     <script type="text/javascript" language="JavaScript">
                     // <![CDATA[
+                        var ml = new Object();
+                        ml.viewthumbnails_link = "$thumbnail_text";
+
                         DOM.addEventListener(window, "load", function (evt) {
                         // attach userpicselect code to userpicbrowse button
                             var ups_btn = \$("lj_userpicselect");
diff -r 93abaa71d878 -r ec28cc4ade7b htdocs/update.bml
--- a/htdocs/update.bml Mon Jun 01 14:59:25 2009 +0000
+++ b/htdocs/update.bml Sat Jun 06 03:48:12 2009 +0000
@@ -604,13 +604,6 @@ head<=
 
     $ret .= (! $LJ::REQ_HEAD_HAS{'chalresp_js'}++) ? 
$LJ::COMMON_CODE{'chalresp_js'} : "";
 
-    $ret .= <<HEAD;
-<script type="text/javascript">
-    var ml = new Object();
-    ml.viewthumbnails_link = "$ML{'.link.view_thumbnails'}";
-</script>
-HEAD
-
     return $ret;
 }
 _code?>
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to