[geeklog-hg] geeklog: Fixed a bug "More.." tab in the configuration UI does n...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Mar 2 02:33:50 EST 2013
changeset 8971:f459ecb9804d
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/f459ecb9804d
user: dengen
date: Sat Mar 02 16:33:00 2013 +0900
description:
Fixed a bug "More.." tab in the configuration UI does not work correctly (bug #0001560)
diffstat:
public_html/javascript/admin.configuration.js | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 22e6c4ac5af0 -r f459ecb9804d public_html/javascript/admin.configuration.js
--- a/public_html/javascript/admin.configuration.js Mon Feb 25 20:05:37 2013 -0500
+++ b/public_html/javascript/admin.configuration.js Sat Mar 02 16:33:00 2013 +0900
@@ -117,7 +117,7 @@
});
}
-// return false;
+ return false;
} else {
$('#tabs-dropdown').hide().parent().removeClass('ui-tabs-selected ui-state-active');
$('.ui-tabs-panel').removeClass('ui-tabs-hide');
@@ -266,6 +266,19 @@
var targetParent = target.parent();
if ($('#tabs-dropdown').length > 0) {
+ if ((target.attr('class') === 'ui-tabs-anchor') && (target.attr('href') !== '#tab-dropdown')) {
+ var idx = tabs.tabs('option', 'active');
+ var dummy = idx + ((idx == 0) ? 1 : -1); // dummy is any value not idx
+ tabs.tabs("option", "active", dummy);
+ tabs.tabs("option", "active", idx);
+
+ $("#tabs-dropdown > li").each(function() {
+ var href = $('a', this).attr('href');
+ $(href).addClass('ui-tabs-hide');
+ });
+ return false;
+ }
+
if ( target.is('a') && (target.attr('href') === '#tab-dropdown')) {
// $('#tabs-dropdown').toggle();
e.preventDefault();
@@ -386,8 +399,9 @@
*/
function selectTabInHiddenTabs(href) {
$('.ui-tabs-nav li.ui-state-default').each(function() {
- $(this).removeClass('ui-tabs-selected');
- $(this).removeClass('ui-state-active');
+ $(this).removeClass('ui-state-active ui-tabs-active');
+// $(this).attr('aria-selected', false);
+// $(this).attr('tabindex', -1);
});
$('.ui-tabs-panel', tabs).addClass('ui-tabs-hide');
href = href.substring(href.lastIndexOf('#'));
More information about the geeklog-cvs
mailing list