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);
|
$('#canvas_bg_url').val(url);
|
||||||
}
|
}
|
||||||
$('grid_snapping_step').attr('value', curConfig.snappingStep);
|
$('grid_snapping_step').attr('value', curConfig.snappingStep);
|
||||||
if (curConfig.gridSnapping == true) {
|
|
||||||
$('#grid_snapping_on').attr('checked', 'checked');
|
$('#grid_snapping_on').prop('checked', curConfig.gridSnapping);
|
||||||
} else {
|
|
||||||
$('#grid_snapping_on').removeAttr('checked');
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#svg_prefs').show();
|
$('#svg_prefs').show();
|
||||||
};
|
};
|
||||||
|
@ -3574,6 +3571,7 @@
|
||||||
$(this).removeClass('push_button_pressed').addClass('push_button');
|
$(this).removeClass('push_button_pressed').addClass('push_button');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ask for a layer name
|
||||||
$('#layer_new').click(function() {
|
$('#layer_new').click(function() {
|
||||||
var i = svgCanvas.getCurrentDrawing().getNumLayers();
|
var i = svgCanvas.getCurrentDrawing().getNumLayers();
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in New Issue