afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-06 03:49 am

[dw-free] can't switch from HTML to RTE when editing entries

[commit: http://hg.dwscoalition.org/dw-free/rev/ec28cc4ade7b]

http://bugs.dwscoalition.org/show_bug.cgi?id=1246

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

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/weblib.pl
  • htdocs/update.bml
--------------------------------------------------------------------------------
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?>
--------------------------------------------------------------------------------