From 4ed8173b3f4f6409ae80ee3c87ab2ebad5542235 Mon Sep 17 00:00:00 2001 From: devjin Date: Tue, 28 Feb 2012 07:58:42 +0000 Subject: [PATCH] issue 1036 fixed image_link editor component (image align) git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10242 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/components/image_link/tpl/popup.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/editor/components/image_link/tpl/popup.js b/modules/editor/components/image_link/tpl/popup.js index eb4283e1a..7de60338c 100644 --- a/modules/editor/components/image_link/tpl/popup.js +++ b/modules/editor/components/image_link/tpl/popup.js @@ -81,10 +81,10 @@ var border = parseInt($form.find('#image_border').val(), 10); var margin = parseInt($form.find('#image_margin').val(), 10); - if($form.find('#align_normal').attr('checked') == true) align = ''; - else if($form.find('#align_left').attr('checked') == true) align = 'left'; - else if($form.find('#align_middle').attr('checked') == true) align = 'middle'; - else if($form.find('#align_right').attr('checked') == true) align = 'right'; + if($form.find('#align_normal').attr('checked') == 'checked') align = ''; + else if($form.find('#align_left').attr('checked') == 'checked') align = 'left'; + else if($form.find('#align_middle').attr('checked') == 'checked') align = 'middle'; + else if($form.find('#align_right').attr('checked') == 'checked') align = 'right'; var width = $form.find('#width').val(); var height = $form.find('#height').val();