dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
11a2997
)
unhide tz button also for older js-enabled browsers
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Thu, 20 May 2004 11:47:24 +0000
(11:47 +0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Thu, 20 May 2004 11:47:24 +0000
(11:47 +0000)
stylesheets/wikibits.js
patch
|
blob
|
history
diff --git
a/stylesheets/wikibits.js
b/stylesheets/wikibits.js
index
c65af89
..
bab8d8a
100644
(file)
--- a/
stylesheets/wikibits.js
+++ b/
stylesheets/wikibits.js
@@
-19,6
+19,7
@@
function onloadhook () {
// don't run anything below this for non-dom browsers
if(!(document.getElementById && document.getElementsByTagName)) return;
histrowinit();
// don't run anything below this for non-dom browsers
if(!(document.getElementById && document.getElementsByTagName)) return;
histrowinit();
+ unhidetzbutton();
tabbedprefs();
}
if (window.addEventListener) window.addEventListener("load",onloadhook,false);
tabbedprefs();
}
if (window.addEventListener) window.addEventListener("load",onloadhook,false);
@@
-119,7
+120,7
@@
function tabbedprefs() {
var seci = 0;
for(i=0;i<children.length;i++) {
if(children[i].nodeName.indexOf('FIELDSET') != -1) {
var seci = 0;
for(i=0;i<children.length;i++) {
if(children[i].nodeName.indexOf('FIELDSET') != -1) {
- children[i].id = 'prefsection-' + i;
+ children[i].id = 'prefsection-' +
sec
i;
children[i].className = 'prefsection';
if(is_opera || is_khtml) children[i].className = 'prefsection operaprefsection';
legends = children[i].getElementsByTagName('LEGEND');
children[i].className = 'prefsection';
if(is_opera || is_khtml) children[i].className = 'prefsection operaprefsection';
legends = children[i].getElementsByTagName('LEGEND');
@@
-150,7
+151,6
@@
function tabbedprefs() {
}
prefform.insertBefore(toc, children[0]);
document.getElementById('prefsubmit').id = 'prefcontrol';
}
prefform.insertBefore(toc, children[0]);
document.getElementById('prefsubmit').id = 'prefcontrol';
- document.getElementById('guesstimezonebutton').style.display = 'inline';
}
function uncoversection() {
oldsecid = this.parentNode.parentNode.selectedid;
}
function uncoversection() {
oldsecid = this.parentNode.parentNode.selectedid;
@@
-183,6
+183,10
@@
function checkTimezone( tz, msg ) {
document.write( junk[0] + "UTC" + tzString + junk[1] );
}
}
document.write( junk[0] + "UTC" + tzString + junk[1] );
}
}
+function unhidetzbutton() {
+ tzb = document.getElementById('guesstimezonebutton')
+ if(tzb) tzb.style.display = 'inline';
+}
// in [-]HH:MM format...
// won't yet work with non-even tzs
// in [-]HH:MM format...
// won't yet work with non-even tzs