1
0
Fork 0
forked from 0x2620/oxjs

form elements rewrite, part 2

This commit is contained in:
rolux 2011-12-21 21:03:52 +05:30
commit 074902d079
33 changed files with 163 additions and 153 deletions

View file

@ -60,6 +60,7 @@ Ox.PlacePicker = function(options, self) {
.append(
self.$range = Ox.Range({
arrows: true,
changeOnDrag: true,
id: self.options.id + 'Range',
max: 22,
size: 256,
@ -107,12 +108,11 @@ Ox.PlacePicker = function(options, self) {
function clickLabel() {
var name = that.$label.html();
if (name) {
self.$input.options({
value: name
})
.triggerEvent('submit', {
value: name
});
self.$input
.value(name)
.triggerEvent('submit', {
value: name
});
}
}
@ -128,9 +128,7 @@ Ox.PlacePicker = function(options, self) {
}
function onZoom(data) {
self.$range.options({
value: data.value
});
self.$range.value(data.value);
}
function showPicker() {