johnmuhl (owner)

Revisions

  • 6d2b43 johnmuhl Mon Oct 19 10:45:51 -0700 2009
gist: 213543 Download_button fork
public
Public Clone URL: git://gist.github.com/213543.git
Embed All Files: show embed
tracking down broken tabs in ie8 #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
toElement: function() { // this.element = #tabs.tabs
  this.element = $a( // insert A into #tabs.tabs
    { 'class': 'tab', 'href': '#' }, // new A attributes
    $span(this.caption), // insert SPAN into new A; content from data-caption
    $img( // insert IMG into new A
      { 'src': '/images/admin/tab_close.png', // new IMG attributes
        'class': 'close', // ...
        'alt': 'Remove part', // ...
        'title': 'Remove part' // ...
      }
    )
  );
  return this.element;
}