diff app/assets/javascripts/init.tabs.js @ 144:b56ad3caed6d

Remove hash on `#!plain.auto`.
author Edho Arief <edho@myconan.net>
date Sat, 17 Nov 2012 13:03:09 +0700
parents 2104f0c477c0
children 601c608637e7
line wrap: on
line diff
--- a/app/assets/javascripts/init.tabs.js	Sat Nov 17 13:01:08 2012 +0700
+++ b/app/assets/javascripts/init.tabs.js	Sat Nov 17 13:03:09 2012 +0700
@@ -8,9 +8,10 @@
       width = paste.data('width'),
       qstring = '#!' + mode + '.' + width;
     if (width == 'auto') {
-      qstring = '#!';
-      if (mode != 'plain') {
-        qstring += mode;
+      if (mode == 'plain') {
+        qstring = ' ';
+      } else {
+        qstring += '#!' + mode;
       }
     }
     if (history.replaceState) {