comparison app/assets/javascripts/init.tabs.js @ 127:426fb7bb44bb

Missed one toolbar identifier update.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 16:45:19 +0700
parents 64f73525503b
children 7efe5e87658e
comparison
equal deleted inserted replaced
126:bf214f66874d 127:426fb7bb44bb
52 $('.open').removeClass('open'); 52 $('.open').removeClass('open');
53 return false; 53 return false;
54 }); 54 });
55 55
56 mode = window.location.hash.substr(2).split('.'); 56 mode = window.location.hash.substr(2).split('.');
57 if (mode[0] == 'highlight') { $('#paste-tabs li:eq(1) a').click(); } 57 if (mode[0] == 'highlight') { $('#paste-mode a:eq(1)').click(); }
58 else if (mode[0] == 'markdown') { $('#paste-tabs li:eq(2) a').click(); } 58 else if (mode[0] == 'markdown') { $('#paste-mode a:eq(2)').click(); }
59 if (mode[1] && mode[1].match(/^\d+px$/)) { paste_resize(mode[1]); } 59 if (mode[1] && mode[1].match(/^\d+px$/)) { paste_resize(mode[1]); }
60 60
61 } 61 }
62 }); 62 });