changeset 127:426fb7bb44bb

Missed one toolbar identifier update.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 16:45:19 +0700
parents bf214f66874d
children 7efe5e87658e
files app/assets/javascripts/init.tabs.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/assets/javascripts/init.tabs.js	Mon Nov 12 16:36:03 2012 +0700
+++ b/app/assets/javascripts/init.tabs.js	Mon Nov 12 16:45:19 2012 +0700
@@ -54,8 +54,8 @@
     });
 
     mode = window.location.hash.substr(2).split('.');
-    if (mode[0] == 'highlight') { $('#paste-tabs li:eq(1) a').click(); }
-    else if (mode[0] == 'markdown') { $('#paste-tabs li:eq(2) a').click(); }
+    if (mode[0] == 'highlight') { $('#paste-mode a:eq(1)').click(); }
+    else if (mode[0] == 'markdown') { $('#paste-mode a:eq(2)').click(); }
     if (mode[1] && mode[1].match(/^\d+px$/)) { paste_resize(mode[1]); }
 
   }