comparison 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
comparison
equal deleted inserted replaced
143:08f0c0244175 144:b56ad3caed6d
6 var paste = $('#paste'), 6 var paste = $('#paste'),
7 mode = paste.data('mode'), 7 mode = paste.data('mode'),
8 width = paste.data('width'), 8 width = paste.data('width'),
9 qstring = '#!' + mode + '.' + width; 9 qstring = '#!' + mode + '.' + width;
10 if (width == 'auto') { 10 if (width == 'auto') {
11 qstring = '#!'; 11 if (mode == 'plain') {
12 if (mode != 'plain') { 12 qstring = ' ';
13 qstring += mode; 13 } else {
14 qstring += '#!' + mode;
14 } 15 }
15 } 16 }
16 if (history.replaceState) { 17 if (history.replaceState) {
17 history.replaceState(null, '', qstring); 18 history.replaceState(null, '', qstring);
18 } else { 19 } else {