Mercurial > zeropaste
comparison app/assets/javascripts/zp.viewer_width.js @ 261:f057e8c78e50
Fix /show.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 15 Oct 2013 22:40:08 +0900 |
parents | 22c4b5f90e24 |
children |
comparison
equal
deleted
inserted
replaced
260:c4aba8990c5e | 261:f057e8c78e50 |
---|---|
4 current: "auto", | 4 current: "auto", |
5 resize: function(width) { | 5 resize: function(width) { |
6 var | 6 var |
7 paste = $("#paste"), | 7 paste = $("#paste"), |
8 title = $("#paste-resize .btn") | 8 title = $("#paste-resize .btn") |
9 title.text(title.data("base").replace(":size:", width)) | 9 title_span = $("#width-text") |
10 title_span.text(title.data("base").replace(":size:", width)) | |
10 this.current = width | 11 this.current = width |
11 if (width == "auto") { | 12 if (width == "auto") { |
12 paste.css("width", "") | 13 paste.css("width", "") |
13 } else { | 14 } else { |
14 paste.css("width", width) | 15 paste.css("width", width) |