Page MenuHomePhabricator

protect.js.patch

Authored By
bzimport
Nov 21 2014, 9:53 PM
Size
618 B
Referenced Files
None
Subscribers
None

protect.js.patch

Index: skins/common/protect.js
===================================================================
--- skins/common/protect.js (revision 30606)
+++ skins/common/protect.js (working copy)
@@ -216,3 +216,23 @@
}
});
}
+
+function considerChangingExpiryFocus() {
+ if (!document.getElementById) {
+ return;
+ }
+ var drop = document.getElementById('wpProtectExpiry');
+ if (!drop) {
+ return;
+ }
+ var field = document.getElementById('mwProtectother');
+ if (!field) {
+ return;
+ }
+ var opt = drop.value;
+ if (opt == 'other') {
+ field.style.display = '';
+ } else {
+ field.style.display = 'none';
+ }
+}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3757
Default Alt Text
protect.js.patch (618 B)

Event Timeline