view changes

This commit is contained in:
albert
2011-08-22 16:28:31 -04:00
parent 24bf21540a
commit 2b7a8f2d67
10 changed files with 47 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
$(document).ready(function() {
$(function() {
var img = $("#image-preview img");
if (img) {
var height = img.attr("height");
@@ -7,7 +7,7 @@ $(document).ready(function() {
var ratio = 400.0 / height;
img.attr("height", height * ratio);
img.attr("width", width * ratio);
$("#scale").val("Scaled " + parseInt(100 * ratio) + "%");
$("#scale").html("Scaled " + parseInt(100 * ratio) + "%");
}
}
});