summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2014-02-01 12:46:39 -0500
committerJules <jules@asdf.us>2014-02-01 12:46:39 -0500
commitd9e55fe2ebd54da0e48567a61a2dbedea3ba2d24 (patch)
tree4bf22b69fa113ef891518d374662d68eddd0f1cc
parenta947354668ca5f773d4586d36275abf09ae27631 (diff)
parent42ad490303827327163a62aaa824d6ffc4af0016 (diff)
Merge branch 'master' of lmno:dither
-rw-r--r--js/api/gallery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/api/gallery.js b/js/api/gallery.js
index 8cb738b..c83d5f6 100644
--- a/js/api/gallery.js
+++ b/js/api/gallery.js
@@ -53,8 +53,8 @@ function run_shader(shader_object){
console.log(shader_object)
shader_id_root = shader_object.shader_id
if ($("#persist-image:checked").length) {
- var new_w = parseInt(shader_object.width,10)
- var new_h = parseInt(shader_object.width,10)
+ var new_w = parseInt(shader_object.width, 10)
+ var new_h = parseInt(shader_object.height, 10)
$("#url").val( shader_object.image_url )
if (new_w && new_h) {
preserve_dimensions = true