Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r21446: LJSUP-11421: Cliend-side development for...

Committer: vkurkin
LJSUP-11421: Cliend-side development for Trava.ru
U   trunk/htdocs/manage/settings/index.bml
U   trunk/htdocs/manage/settings/index2.bml
Modified: trunk/htdocs/manage/settings/index.bml
===================================================================
--- trunk/htdocs/manage/settings/index.bml	2012-03-19 08:46:02 UTC (rev 21445)
+++ trunk/htdocs/manage/settings/index.bml	2012-03-19 08:48:58 UTC (rev 21446)
@@ -341,8 +341,7 @@
     $ret .= "</p></div>";
 
     if ($cats_with_settings{$given_cat}->{form}) {
-        my $confirm_msg = LJ::ejs($ML{'.form.confirm'});
-        $ret .= "<script>Settings.confirm_msg = \"$confirm_msg\";</script>";
+        LJ::need_string('.form.confirm');
         $ret .= "<form id='settings_form' action='".(($cats_with_settings{$given_cat} && $cats_with_settings{$given_cat}->{need_ssl})?$LJ::SSLROOT:$LJ::SITEROOT)."/manage/settings/$getextra${getsep}cat=$given_cat' method='post'>";
         $ret .= LJ::form_auth();
     }

Modified: trunk/htdocs/manage/settings/index2.bml
===================================================================
--- trunk/htdocs/manage/settings/index2.bml	2012-03-19 08:46:02 UTC (rev 21445)
+++ trunk/htdocs/manage/settings/index2.bml	2012-03-19 08:48:58 UTC (rev 21446)
@@ -378,8 +378,7 @@
     $ret .= "</p></div>";
 
     if ($cats_with_settings{$given_cat}->{form}) {
-        my $confirm_msg = LJ::ejs($ML{'.form.confirm'});
-        $ret .= "<script>Settings.confirm_msg = \"$confirm_msg\";</script>";
+        LJ::need_string('.form.confirm');
         $ret .= "<form id='settings_form' action='$LJ::SITEROOT/manage/settings/index2.bml$getextra${getsep}cat=$given_cat' method='post'>";
         $ret .= LJ::form_auth();
     }

Tags: b_vladi, bml, livejournal, vkurkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments