# HG changeset patch # User Edho Arief # Date 1352702111 -25200 # Node ID 546381cf83c24cd6e4f4a05317b16cc212267424 # Parent b72f99d7b8cf50af7defe5b87d6aa247045d5b48 auto sounds better than full. diff -r b72f99d7b8cf -r 546381cf83c2 app/assets/javascripts/init.tabs.js --- 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 { diff -r b72f99d7b8cf -r 546381cf83c2 app/views/pastes/show.html.erb --- a/app/views/pastes/show.html.erb Mon Nov 12 13:31:18 2012 +0700 +++ b/app/views/pastes/show.html.erb Mon Nov 12 13:35:11 2012 +0700 @@ -12,11 +12,11 @@
  • -
    +
    <%= @paste.paste %>