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

[livejournal] r19959: LJSV-1771: tags lj user was changed when...

Committer: vkurkin
LJSV-1771: tags lj user was changed when user edit post
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-05 09:32:46 UTC (rev 19958)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-05 09:49:26 UTC (rev 19959)
@@ -1161,15 +1161,16 @@
 									alert(err + ' "' + ljUserName + '"');
 								},
 								onData: function(data) {
-									ljUsers[cacheName] = data.ljuser;
-
 									if (data.error) {
 										return alert(data.error + ' "' + username + '"');
 									}
+									
 									if (!data.success) {
 										return;
 									}
 
+									ljUsers[cacheName] = data.ljuser;
+
 									data.ljuser = data.ljuser.replace('<span class="useralias-value">*</span>', '');
 
 									var ljTags = editor.document.getElementsByTag('lj');

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