summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-08 09:52:34 +0100
committerYorhel <git@yorhel.nl>2011-01-08 09:52:34 +0100
commitb71b33630728a5e3de15baab7eecdc6ac2c004b0 (patch)
tree06b0d670814f523dc3442497453223a757534f7e
parent6634703985f6f3a690955200e45fb7f42a5ac5a9 (diff)
Changed order of the filter action buttons
And slightly changed how the 'loading...' thing is displayed.
-rw-r--r--ChangeLog1
-rw-r--r--data/script.js9
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d753c74..0dc2ea91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2.17 - ?
- Allow moderators to overrule VN tag votes
- Added 'released' release filter
+ - Changed order of the filter action buttons
- Fixed perl warning on /u+/votes batchedit with nothing selected
- Bugfix: Correctly randomize screenshots on homepage with filters
- Bugfix: Don't show NSFW screenshots on homepage with filters
diff --git a/data/script.js b/data/script.js
index 88246a07..f41b8075 100644
--- a/data/script.js
+++ b/data/script.js
@@ -1791,7 +1791,6 @@ function filLoad() {
tag('b', {'class':'ruler'}, null),
c,
tag('b', {'class':'ruler'}, null),
- PREF_CODE != '' ? tag('input', {type:'button', 'class':'submit', value: mt('_rbrowse_filsave'), onclick:filSaveDefault }) : null,
tag('input', {type:'button', 'class':'submit', value: mt('_rbrowse_apply'), onclick:function () {
var f = byId('fil');
while(f.nodeName.toLowerCase() != 'form')
@@ -1799,7 +1798,8 @@ function filLoad() {
f.submit();
}}),
tag('input', {type:'button', 'class':'submit', value: mt('_rbrowse_reset'), onclick:function () { byId('fil').value = ''; filDeSerialize()} }),
- tag('p', {id:'fil_savenote', 'class':'hidden'}, mt('_rbrowse_savenote'))
+ PREF_CODE != '' ? tag('input', {type:'button', 'class':'submit', value: mt('_rbrowse_filsave'), onclick:filSaveDefault }) : null,
+ tag('p', {id:'fil_savenote', 'class':'hidden'}, '')
));
filSelectCat(1);
byId('filselect').onclick = filShow;
@@ -1808,12 +1808,13 @@ function filLoad() {
function filSaveDefault() {
var but = this;
- but.value = mt('_js_loading');
+ var note = byId('fil_savenote');
+ setText(note, mt('_js_loading'));
but.enabled = false;
setClass(byId('fil_savenote'), 'hidden', false);
var type = byId('filselect').href.match(/#r$/) ? 'release' : 'vn';
ajax('/xml/prefs.xml?formcode='+PREF_CODE+';key=filter_'+type+';value='+byId('fil').value, function (hr) {
- but.value = mt('_rbrowse_filsave');
+ setText(note, mt('_rbrowse_savenote'));
but.enable = true;
});
}