public
Fork of xilinus/prototypeui
Description: Prototype UI
Homepage: http://prototype-ui.com
Clone URL: git://github.com/starpeak/prototypeui.git
ome tabbox updates
starpeak (author)
Sun Jul 13 10:24:14 -0700 2008
commit  3f109b0c5023bdd1049d5485200026fa91df495e
tree    456e382dc40f98e2e94278162181df49a8680090
parent  0748ac548cf808052f7612d69bc1b2694869a875
...
152
153
154
 
 
 
155
156
157
...
159
160
161
 
162
163
164
...
168
169
170
171
172
173
174
175
 
 
176
177
178
...
152
153
154
155
156
157
158
159
160
...
162
163
164
165
166
167
168
...
172
173
174
 
 
 
 
 
175
176
177
178
179
0
@@ -152,6 +152,9 @@ UI.Tabbox = Class.create(UI.Options, {
0
     
0
     this.selectedTab=this.tabs.get(tabName);
0
     
0
+    this.selectedTab.head.addClassName('selected');
0
+    this.selectedTab.element.show();
0
0
     if(this.selectedTab.ajaxContent)
0
     {
0
       tab=this.tabs.get(tabName);
0
@@ -159,6 +162,7 @@ UI.Tabbox = Class.create(UI.Options, {
0
         this.fire('selected', {
0
           tab: tab
0
         });
0
+        this.fire('selected:'+tabName);
0
         if(tab.ajaxLoadOnce) {
0
           tab.ajaxContent=false;
0
         }
0
@@ -168,11 +172,8 @@ UI.Tabbox = Class.create(UI.Options, {
0
       this.fire('selected', {
0
         tab: tabName
0
       });
0
-    }
0
-    
0
-    this.selectedTab.head.addClassName('selected');
0
-    this.selectedTab.element.show();
0
-      
0
+      this.fire('selected:'+tabName);
0
+    }      
0
     
0
     return this;
0
   }
...
7
8
9
 
 
10
11
12
...
7
8
9
10
11
12
13
14
0
@@ -7,6 +7,8 @@
0
 .osx_ui_menu ul {
0
   padding: 2px 0;
0
 }                 
0
+.osx_ui_menu a:link,
0
+.osx_ui_menu a:visited,
0
 .osx_ui_menu a {
0
   color: #333;
0
   padding: 0px 15px;

Comments