diff app/assets/javascripts/init.tabs.js @ 125:64f73525503b

Use button toolbar instead of nav.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 16:22:03 +0700
parents 4a8cefa814f1
children 426fb7bb44bb
line wrap: on
line diff
--- a/app/assets/javascripts/init.tabs.js	Mon Nov 12 15:33:11 2012 +0700
+++ b/app/assets/javascripts/init.tabs.js	Mon Nov 12 16:22:03 2012 +0700
@@ -1,5 +1,5 @@
 $(document).ready(function() {
-  if ($('#paste-tabs').length == 1) {
+  if ($('#paste-show').length == 1) {
     raw = $('#plain pre').text();
 
     marked.setOptions({
@@ -31,7 +31,7 @@
 
     paste_resize = function(size) {
       var paste = $('#paste'),
-        title = $('#tab-resize a.btn');
+        title = $('#paste-resize a.btn');
       title.html(title.html().replace(/(auto|\d+px)/, size));
       if (size == 'auto') {
         paste.css('width', '');
@@ -43,11 +43,11 @@
       update_state();
     }
 
-    $('#paste-tabs > li > a').click(function() {
+    $('#paste-mode a').click(function() {
       $('#paste').data('mode', $(this).prop('href').split('#')[1]);
       update_state();
     });
-    $('#tab-resize ul a').click(function() {
+    $('#paste-resize ul a').click(function() {
       paste_resize($(this).data('size'));
       $('.open').removeClass('open');
       return false;