changeset 144:b56ad3caed6d

Remove hash on `#!plain.auto`.
author Edho Arief <edho@myconan.net>
date Sat, 17 Nov 2012 13:03:09 +0700
parents 08f0c0244175
children f390e3903d3c
files app/assets/javascripts/init.tabs.js
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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) {