[geeklog-cvs] geeklog: Fixed bugs about the "More.." tab of the configuration UI.

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Apr 24 07:55:36 EDT 2011


changeset 8252:9ad4f75a36c5
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/9ad4f75a36c5
user: dengen
date: Sun Apr 24 12:40:47 2011 +0900
description:
Fixed bugs about the "More.." tab of the configuration UI.

diffstat:

 public_html/javascript/admin.configuration.js |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r e36936d3feab -r 9ad4f75a36c5 public_html/javascript/admin.configuration.js
--- a/public_html/javascript/admin.configuration.js	Sat Apr 23 13:25:45 2011 +0100
+++ b/public_html/javascript/admin.configuration.js	Sun Apr 24 12:40:47 2011 +0900
@@ -378,12 +378,12 @@
     }
     
     function getTotalTabsWidth() {
-        var totalWidth = 0;
+        var totalWidth = 10;
         var tabsWidth = tabs.width();
         var overflowAt = null;
         
         $j("#tabs > ul > li").each(function(idx) {
-            totalWidth += $j(this).width();
+            totalWidth += ($j(this).width() + 5);
             
             if (totalWidth >= tabsWidth && overflowAt === null) {
                 overflowAt = idx;
@@ -428,8 +428,8 @@
             }
             
             for ( tab in hiddenTabs ) {
-                dropDown += '<li><a href="' + tab + '">' + 
-                            hiddenTabs[tab]['tab_title'] + '</a></li>';
+                dropDown = '<li><a href="' + tab + '">' + 
+                            hiddenTabs[tab]['tab_title'] + '</a></li>' + dropDown;
                             
                 var tabs_content = '<div id="' + tab.substr(1) + '" ' + 
                                    'class="ui-tabs-panel ui-widget-content ' +
@@ -462,7 +462,7 @@
         }
         
         for ( tab in hiddenTabs ) {
-            tabs.tabs('add', tab, hiddenTabs[tab]['tab_title'], tabsLength);
+            tabs.tabs('add', tab, hiddenTabs[tab]['tab_title'], tabsLength-1);
             $j( tab ).html( hiddenTabs[tab]['tab_content'] );
         }
         hiddenTabs = {}



More information about the geeklog-cvs mailing list