журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r23250: LJSUP-14157: Add 'limit social capital' ...

Committer: nnikulochkina
LJSUP-14157: Add 'limit social capital' param to paid repost settings
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-11-02 12:33:53 UTC (rev 23249)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-11-02 13:29:36 UTC (rev 23250)
@@ -939,10 +939,20 @@
             $out .= qq{<label for="repost_budget" class="b-updatepage-paidrepost-label">$label</label>};
             $out .= qq{<span class="b-updatepage-paidrepost-budget">$field</span>};
             $out .= qq{</span>};
-            
+
+            my $limit_sc_label = LJ::Lang::ml('talk.post.paidrepost.limit_sc');    
+            my $limit_sc_field = LJ::html_text({
+                'name'     => 'repost_limit_sc',
+                'value'    => $opts->{limit_sc},
+                'id'       => 'repost_limit_sc',
+                'tabindex' => '225',
+                'size'     => '10',
+                'raw'      => "autocomplete='off'",
+            });
+
             $out .= qq{<span class="b-updatepage-paidrepost-fields">};
-            my $limit_sc_text = LJ::Lang::ml('talk.post.paidrepost.limit_sc');    
-            $out .= qq{<label class="b-updatepage-paidrepost-label">$limit_sc_text</label> <span class="b-updatepage-paidrepost-cs"><input size="10" type="text" name="repost_limit_sc" value="$limit_sc"></span};
+            $out .= qq{<label class="b-updatepage-paidrepost-label">$limit_sc_label</label>};
+            $out .= qq{<span class="b-updatepage-paidrepost-cs">$limit_sc_field</span>};
             $out .= qq{</span>};
             
             return $out;

Tags: livejournal, nikulochkina, nnikulochkina, pm
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