4 console = { log: function() {} };
8 console.log("ready()");
10 $('#tabs a').click(function() {
11 $('#tabs a').removeClass('selected');
12 $(this).addClass('selected');
15 /* See if that tab has been rendered to the page. */
16 tabname = '#tab-' + $(this).attr('id');
18 if(tab.children().length < 1) {
19 /* If not, return true so that we actually reload. */
20 tab.load($(this).attr('href') + ' ' + tabname + '> *');
25 $('#tabs a.selected').click();
27 $('body').bind('orientationchange', function() {
28 switch(window.orientation) {
31 $('body').attr('id', 'portrait');
35 $('body').attr('id', 'landscape');
39 $('body').trigger('orientationchange');
41 console.log("ready() done");