From 4737e5ce237192abca8e267f5206d024f8c90b0e Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 19 Jan 2011 08:46:42 -0500
Subject: [PATCH] - Fix: selecting Preferences tab doesn't work after clicking other tab
---
program/js/app.js | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/program/js/app.js b/program/js/app.js
index 6be8103..786915a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -652,7 +652,7 @@
input_email.focus();
break;
}
-
+
// clear empty input fields
$('input.placeholder').each(function(){ if (this.value == this._placeholder) this.value = ''; });
}
@@ -1015,7 +1015,7 @@
this.goto_url('export', { _source:this.env.source, _gid:this.env.group, _search:this.env.search_request });
}
break;
-
+
case 'upload-photo':
this.upload_contact_photo(props);
break;
@@ -1026,15 +1026,9 @@
// user settings commands
case 'preferences':
- this.goto_url('');
- break;
-
case 'identities':
- this.goto_url('settings/identities');
- break;
-
case 'folders':
- this.goto_url('settings/folders');
+ this.goto_url('settings/' + command);
break;
// unified command call (command name == function name)
--
Gitblit v1.9.1