used .data() method shortcut to retrieve zoomValue
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2431 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
12f5fd9bce
commit
570c59ebf2
|
@ -2230,7 +2230,7 @@
|
|||
|
||||
$('#blur_slider').slider({
|
||||
max: 10,
|
||||
step: .1,
|
||||
step: 0.1,
|
||||
stop: function(evt, ui) {
|
||||
slideStart = false;
|
||||
changeBlur(ui);
|
||||
|
@ -2245,14 +2245,13 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
Editor.addDropDown('#zoom_dropdown', function() {
|
||||
var item = $(this);
|
||||
var val = item.attr('data-val');
|
||||
var val = item.data('val');
|
||||
if (val) {
|
||||
zoomChanged(window, val);
|
||||
} else {
|
||||
changeZoom({value:parseInt(item.text(), 10)});
|
||||
changeZoom({value: parseInt(item.text(), 10)});
|
||||
}
|
||||
}, true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue