used .data() method shortcut to retrieve zoomValue

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2431 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Bruno Heridet
2013-02-19 13:25:54 +00:00
parent 12f5fd9bce
commit 570c59ebf2

View File

@@ -2230,7 +2230,7 @@
$('#blur_slider').slider({ $('#blur_slider').slider({
max: 10, max: 10,
step: .1, step: 0.1,
stop: function(evt, ui) { stop: function(evt, ui) {
slideStart = false; slideStart = false;
changeBlur(ui); changeBlur(ui);
@@ -2245,14 +2245,13 @@
} }
}); });
Editor.addDropDown('#zoom_dropdown', function() { Editor.addDropDown('#zoom_dropdown', function() {
var item = $(this); var item = $(this);
var val = item.attr('data-val'); var val = item.data('val');
if (val) { if (val) {
zoomChanged(window, val); zoomChanged(window, val);
} else { } else {
changeZoom({value:parseInt(item.text(), 10)}); changeZoom({value: parseInt(item.text(), 10)});
} }
}, true); }, true);