public
Description: Click-draggable. Range-makeable. A better calendar.
Homepage: http://stephencelis.com/projects/timeframe
Clone URL: git://github.com/stephencelis/timeframe.git
Click here to lend your support to: timeframe and make a donation at www.pledgie.com !
Don't bark at me, IE7
stephencelis (author)
Mon Apr 21 08:31:51 -0700 2008
commit  863ad921e4d26c1659c635a8ab9d62fbe3d3ba6e
tree    a014ad17027a75ad4825f8950863c44d37c11652
parent  aad07135254b14b89b962b4a92ed954c7aa7f4ca
...
292
293
294
 
295
 
296
297
298
 
299
300
301
...
292
293
294
295
296
297
298
299
 
300
301
302
303
0
@@ -292,10 +292,12 @@ var Timeframe = Class.create({
0
   },
0
   
0
   toggleClearButton: function(event) {
0
+ var el;
0
     if(event.element().ancestors && event.findElement('td.selected')) {
0
+ // FIXME: IE7 doesn't parse these selects very well
0
       if(el = this.container.select('#calendar_0 .pre.selected').first());
0
       else if(el = this.container.select('.active.selected').first());
0
- Element.insert(el, { top: this.clearButton });
0
+ if(el) Element.insert(el, { top: this.clearButton });
0
       this.clearButton.removeClassName('active').show();
0
     }
0
     else {

Comments

    No one has commented yet.