can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r21684: LJSUP-11753: Tags from personal account ...

Committer: dpetrov
LJSUP-11753: Tags from personal account instead community tags showed for moderator when adding tag from query page
U   trunk/htdocs/js/community/moderate.js
Modified: trunk/htdocs/js/community/moderate.js
===================================================================
--- trunk/htdocs/js/community/moderate.js	2012-04-10 08:26:14 UTC (rev 21683)
+++ trunk/htdocs/js/community/moderate.js	2012-04-10 08:37:18 UTC (rev 21684)
@@ -1,12 +1,17 @@
-function selectModTags(node) {
-	var widget = new LJWidgetIPPU_SelectTags({
-		title: node.firstChild.nodeValue,
-		height: 329,
-		width: jQuery(window).width() / 2
-	}, {
-		user: jQuery(document.forms.authForm.authas).val()
-	});
+(function($) {
+	var user = LiveJournal.parseGetArgs().authas;
 
-	return false;
-}
+	window.selectModTags = function(node) {
+		var widget = new LJWidgetIPPU_SelectTags({
+			title: node.firstChild.nodeValue,
+			height: 329,
+			width: jQuery(window).width() / 2
+		}, {
+			user: user || jQuery(document.forms.authForm.authas).val()
+		});
 
+		return false;
+	}
+
+})(jQuery);
+

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