Mercurial > zeropaste
diff app/assets/javascripts/init.tabs.js @ 115:546381cf83c2
auto sounds better than full.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 12 Nov 2012 13:35:11 +0700 |
parents | b72f99d7b8cf |
children | 9ac24e112ea7 |
line wrap: on
line diff
--- a/app/assets/javascripts/init.tabs.js Mon Nov 12 13:31:18 2012 +0700 +++ b/app/assets/javascripts/init.tabs.js Mon Nov 12 13:35:11 2012 +0700 @@ -12,7 +12,7 @@ mode = paste.data('mode'), width = paste.data('width'), qstring = '?' + mode + '.' + width; - if ((mode == 'plain') && (width == 'full')) { + if ((mode == 'plain') && (width == 'auto')) { qstring = '?'; } history.replaceState(null, '', qstring); @@ -21,8 +21,8 @@ paste_resize = function(size) { var paste = $('#paste'), title = $('#tab-resize a.btn'); - title.html(title.html().replace(/(full|\d+px)/, size)); - if (size == 'full') { + title.html(title.html().replace(/(auto|\d+px)/, size)); + if (size == 'auto') { paste.css('width', ''); paste.data('width', size); } else {