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

[livejournal] r21615: LJSUP-11703: Connect to Trava in manage/...

Committer: vkurkin
LJSUP-11703: Connect to Trava in manage/settings
U   trunk/htdocs/js/settings.js
Modified: trunk/htdocs/js/settings.js
===================================================================
--- trunk/htdocs/js/settings.js	2012-03-30 14:41:09 UTC (rev 21614)
+++ trunk/htdocs/js/settings.js	2012-03-30 14:49:41 UTC (rev 21615)
@@ -76,7 +76,7 @@
 	}
 
 	function saveChanges (data, success, error) {
-		data.ajax = true;
+		data.ajax = 1;
 
 		$.ajax({
 			type: 'POST',
@@ -128,6 +128,7 @@
 			evt.preventDefault();
 
 			travaElement
+				.removeClass(classNames.allClasses)
 				.addClass(classNames.loading)
 				.trava('login');
 		})
@@ -147,7 +148,7 @@
 
 	onChangesMusic.call(musicSelect[0]);
 
-	if (UID !== notLoginID) {
+	if (Number(UID) !== notLoginID) {
 		travaElement.trava('getUserInfo');
 	}
 });

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