used .prop() for #grid_snapping_on checkbox state

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2421 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Bruno Heridet 2013-02-18 18:02:39 +00:00
parent 480fb64004
commit 15d765de85
1 changed files with 3 additions and 5 deletions

View File

@ -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 {