used .prop() for #grid_snapping_on checkbox state
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2421 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
480fb64004
commit
15d765de85
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue