used .data() method shortcut to retrieve zoomValue

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2431 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Bruno Heridet 2013-02-19 13:25:54 +00:00
parent 12f5fd9bce
commit 570c59ebf2
1 changed files with 3 additions and 4 deletions

View File

@ -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);