comparison app/assets/javascripts/init.tabs.js @ 136:b327d80c5ff9

Fixed indentation and spaces.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 17:42:37 +0700
parents 0cd87e69dd65
children 3241fe970c13
comparison
equal deleted inserted replaced
135:0cd87e69dd65 136:b327d80c5ff9
1 $(document).ready(function() { 1 $(document).ready(function() {
2 if ($('#paste-show').length !== 1) { 2 if ($('#paste-show').length !== 1) {
3 return; 3 return;
4 } 4 }
5 var update_state = function() { 5 var update_state = function() {
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 qstring = '#!';
12 if (mode != 'plain') { 12 if (mode != 'plain') {
13 qstring += mode; 13 qstring += mode;
14 } 14 }