From 15d765de85d3681617a060048e2529e12935219d Mon Sep 17 00:00:00 2001 From: Bruno Heridet Date: Mon, 18 Feb 2013 18:02:39 +0000 Subject: [PATCH] used .prop() for #grid_snapping_on checkbox state git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2421 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 9ba0a1c3..12edb9d6 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2734,11 +2734,8 @@ $('#canvas_bg_url').val(url); } $('grid_snapping_step').attr('value', curConfig.snappingStep); - if (curConfig.gridSnapping == true) { - $('#grid_snapping_on').attr('checked', 'checked'); - } else { - $('#grid_snapping_on').removeAttr('checked'); - } + + $('#grid_snapping_on').prop('checked', curConfig.gridSnapping); $('#svg_prefs').show(); }; @@ -3574,6 +3571,7 @@ $(this).removeClass('push_button_pressed').addClass('push_button'); }); + // ask for a layer name $('#layer_new').click(function() { var i = svgCanvas.getCurrentDrawing().getNumLayers(); do {