[livejournal] r18555: LJSUP-7762: Mail.ru connect
Committer: ssafronova
LJSUP-7762: Mail.ru connectU trunk/cgi-bin/LJ/S2/ReplyPage.pm U trunk/cgi-bin/LJ/Talk.pm U trunk/htdocs/talkpost.bml U trunk/htdocs/talkpost_do.bml
Modified: trunk/cgi-bin/LJ/S2/ReplyPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/ReplyPage.pm 2011-03-15 10:49:44 UTC (rev 18554)
+++ trunk/cgi-bin/LJ/S2/ReplyPage.pm 2011-03-15 11:01:44 UTC (rev 18555)
@@ -48,7 +48,7 @@
my $ditemid = $entry->ditemid;
$p->{'head_content'} .= $LJ::COMMON_CODE{'chalresp_js'};
- LJ::need_res('stc/display_none.css');
+ LJ::Talk::resources_for_talkform();
if ($u->should_block_robots || $entry->should_block_robots) {
$p->{'head_content'} .= LJ::robot_meta_tags();
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm 2011-03-15 10:49:44 UTC (rev 18554)
+++ trunk/cgi-bin/LJ/Talk.pm 2011-03-15 11:01:44 UTC (rev 18555)
@@ -1569,6 +1569,11 @@
# to retranslate. so for now we're just gonna put it off.
my $SC = '/talkpost_do.bml';
+sub resources_for_talkform {
+ LJ::need_res('stc/display_none.css');
+ LJ::need_res('js/jquery/jquery.lj.authtype.js');
+}
+
sub talkform {
# Takes a hashref with the following keys / values:
Modified: trunk/htdocs/talkpost.bml
===================================================================
--- trunk/htdocs/talkpost.bml 2011-03-15 10:49:44 UTC (rev 18554)
+++ trunk/htdocs/talkpost.bml 2011-03-15 11:01:44 UTC (rev 18555)
@@ -11,7 +11,7 @@
return LJ::server_down_html() if $LJ::SERVER_DOWN;
- LJ::need_res('stc/display_none.css');
+ LJ::Talk::resources_for_talkform();
my $remote = LJ::get_remote();
my $errtxt;
Modified: trunk/htdocs/talkpost_do.bml
===================================================================
--- trunk/htdocs/talkpost_do.bml 2011-03-15 10:49:44 UTC (rev 18554)
+++ trunk/htdocs/talkpost_do.bml 2011-03-15 11:01:44 UTC (rev 18555)
@@ -35,8 +35,8 @@
return LJ::server_down_html() if $LJ::SERVER_DOWN;
- LJ::need_res('stc/display_none.css');
-
+ LJ::Talk::resources_for_talkform();
+
my $editid = $POST{editid};
# Set the title to be for an error, it will be changed later
