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

[livejournal] r19422: LJSV-1625: Clicking tags won't add them ...

Committer: vkurkin
LJSV-1625: Clicking tags won't add them to an entry's list of tags on edittags.bml page in Chrome
U   trunk/htdocs/js/tags.js
Modified: trunk/htdocs/js/tags.js
===================================================================
--- trunk/htdocs/js/tags.js	2011-07-04 06:48:48 UTC (rev 19421)
+++ trunk/htdocs/js/tags.js	2011-07-04 07:18:14 UTC (rev 19422)
@@ -199,10 +199,10 @@
 			tagfield = $('tagfield'),
 			cur_tags = tagfield.value.split(/,\s*/),
 			i, tag;
-		
+
+		var index,
+			top = this.scrollTop; // jump to last element in FF 3.6
 		if (e.type === 'keyup') {
-			var index,
-				top = this.scrollTop; // jump to last element in FF 3.6
 			
 			for (i = -1; selected[++i];) {
 				cache_list[selected[i]].selected = false;
@@ -224,8 +224,6 @@
 				}
 			}
 		} else {
-			var index,
-				top = this.scrollTop; // jump to last element in FF 3.6
 			
 			i = cur_tags.length;
 			while (i--) {
@@ -259,4 +257,4 @@
 		selected = $list.val();
 		EditTag.last_val = selected && selected.join(',');
 	}
-}
+};

Tags: b_vladi, 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