From 42ad490303827327163a62aaa824d6ffc4af0016 Mon Sep 17 00:00:00 2001 From: jules Date: Sat, 1 Feb 2014 12:45:50 -0500 Subject: get height.. --- js/api/gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/api/gallery.js') 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 -- cgit v1.2.3-70-g09d2