update to compressed version of mooui that includes spinners

use spinners on the options tab
This commit is contained in:
Damien Churchill 2008-09-30 16:22:52 +00:00
parent 789f4911bc
commit 27d2a86c74
8 changed files with 340 additions and 1499 deletions

View File

@ -115,7 +115,7 @@ ul.moouiMenu li.moouiMenuSep:hover {
-webkit-border-radius: 5px 5px 0 0;
}
.moouiTabs div {
.moouiTabs .moouiTabPages {
clear: left;
}

View File

@ -397,6 +397,49 @@ Deluge.Widgets.OptionsPage = new Class({
});
}, this);
new Widgets.Spinner(this.form.max_download_speed, {
step: 10,
precision: 1,
limit: {
high: null,
low: -1
}
});
new Widgets.Spinner(this.form.max_upload_speed, {
step: 10,
precision: 1,
limit: {
high: null,
low: -1
}
});
new Widgets.Spinner(this.form.max_connections, {
step: 1,
precision: 0,
limit: {
high: null,
low: -1
}
});
new Widgets.Spinner(this.form.max_upload_slots, {
step: 1,
precision: 0,
limit: {
high: null,
low: -1
}
});
new Widgets.Spinner(this.form.stop_ratio, {
step: 1,
precision: 1,
limit: {
high: null,
low: -1
}
});
this.form.apply.addEvent('click', this.bound.apply);
this.form.reset.addEvent('click', this.bound.reset);
},
@ -436,8 +479,14 @@ Deluge.Widgets.OptionsPage = new Class({
if (type == 'boolean') {
this.form[key].checked = value;
} else {
if (!this.form[key].focused)
this.form[key].value = value;
if (!this.form[key].focused) {
widget = $$W(this.form[key]);
if (widget) {
widget.setValue(value);
} else {
this.form[key].value = value;
};
};
};
if (key == 'private' && value == 0) {
this.form[key].disabled = true

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

View File

@ -305,11 +305,6 @@ form br {
font-weight: bold;
}
.moouiSpinner {
width: 40px;
margin-right: 20px;
}
label.fluid {
width: auto;
margin-right: 30px;
@ -318,3 +313,43 @@ label.fluid {
.deluge-prefs-page {
overflow: auto;
}
.moouiSpinner {
float: left;
width: 66px;
overflow: hidden;
}
.moouiSpinner input {
float: left;
border: 1px solid Black;
width: 40px;
margin: 0;
}
.moouiSpinner div {
float: left;
}
.moouiSpinnerButtons {
width: 9px;
height: 10px;
font-size: 0px;
}
.moouiSpinnerUp {
cursor: pointer;
background: url(up.png) no-repeat;
width: 10px;
height: 5px;
margin: 2px;
}
.moouiSpinnerDown {
cursor: pointer;
background: url(down.png) no-repeat;
width: 10px;
height: 5px;
line-height: 5px;
margin: 2px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B