public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Added down state for cog.  Cleaned up the js a bit more

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@1245 
567b1171-46fb-0310-a4c9-b4bef9110e78
Caged (author)
Wed Jun 14 18:00:35 -0700 2006
commit  16100e2536b4a9e249f5a1980618b7482db4ceea
tree    f50a2d3995a87040ee3d2bbc67662c732cb0ac68
parent  bb2e402467268fe536c43d41f432ba534cb79926
...
18
19
20
 
 
 
 
 
21
22
23
...
30
31
32
33
 
 
34
 
35
36
37
...
18
19
20
21
22
23
24
25
26
27
28
...
35
36
37
 
38
39
40
41
42
43
44
0
@@ -18,6 +18,11 @@ DropMenu.prototype = {
0
     clearTimeout(this.timeout);
0
     this.options.setStyle({opacity: 1});
0
     Element.toggle(this.options);
0
+
0
+ if(this.options.visible())
0
+ Element.addClassName(this.trigger, 'down');
0
+ else
0
+ Element.removeClassName(this.trigger, 'down');
0
   },
0
   
0
   onMenuFocus: function() {
0
@@ -30,8 +35,10 @@ DropMenu.prototype = {
0
   },
0
   
0
   fadeMenu: function() {
0
- if(!this.focused)
0
+ if(!this.focused) {
0
+ Element.removeClassName(this.trigger, 'down');
0
       new Effect.Fade(this.options, {duration: 0.2});
0
+ }
0
   }
0
 }
0
 
...
297
298
299
 
 
300
301
302
...
306
307
308
 
 
 
 
 
 
309
310
311
312
313
314
 
 
315
316
317
...
297
298
299
300
301
302
303
304
...
308
309
310
311
312
313
314
315
316
317
318
319
320
 
 
321
322
323
324
325
0
@@ -297,6 +297,8 @@ input[type='text']:focus, textarea:focus {
0
   position: absolute;
0
   right: 0;
0
   top: 0;
0
+ margin: 0 !important;
0
+ padding: 0 !important;
0
 }
0
 
0
 #select a#cog {
0
@@ -306,12 +308,18 @@ input[type='text']:focus, textarea:focus {
0
   background: url(../images/cog.gif) no-repeat;
0
   padding: 11px 18px;
0
   outline: none;
0
+ margin: 0 !important;
0
+}
0
+
0
+.down {
0
+ background: #ccc url(../images/cog-down.gif) no-repeat !important;
0
+ border-left: 1px solid #5aa !important;
0
 }
0
 
0
 #select #optgroup {
0
   position: absolute;
0
- top: 38px;
0
- left: 2px;
0
+ top: 41px;
0
+ left: 4px;
0
   width: 240px;
0
   z-index: 9999;
0
   padding: 0 5px 5px 0;

Comments

    No one has commented yet.