Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r17318: LJSV-1155: Can't use new tag features on...

Committer: pkornilov
LJSV-1155: Can't use new tag features on editjournal.bml.
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
U   trunk/htdocs/js/entry.js
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2010-09-09 07:27:55 UTC (rev 17317)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2010-09-09 08:23:28 UTC (rev 17318)
@@ -737,10 +737,13 @@
             });
 
             my $help = LJ::help_icon_html('addtags');
-            my $selectTags = (LJ::get_remote()) 
-                ? qq[<a href="#" onclick="return selectTags(this)" class="i-prop-selecttags">$BML::ML{'entryform.selecttags'}</a>]
-                : '';
-            
+
+            my $selectTags = '';
+            if ($remote) {
+                $selectTags = qq|<a href="#" onclick="return selectTags(this)" class="i-prop-selecttags">$BML::ML{'entryform.selecttags'}</a>|;
+                $$onload .= " getUserTags();";
+            }
+
             return qq{
                 <label for='prop_taglist' class='left options'>
                     $BML::ML{'entryform.tags'}

Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2010-09-09 07:27:55 UTC (rev 17317)
+++ trunk/htdocs/js/entry.js	2010-09-09 08:23:28 UTC (rev 17318)
@@ -51,9 +51,6 @@
     f = document.updateForm;
     if (! f) return false;
 	
-	// ID used two variants: usejournal or usejournal_username
-	getUserTags(jQuery(document.forms.updateForm.usejournal).val());
-	
     var userbox = f.user;
     if (! userbox) return false;
     if (! Site.has_remote && userbox.value) altlogin();

Tags: js, livejournal, lusever, 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