434
editsshortened it for a quicker response
Crashaholic (talk | contribs) m (refresh the page cuz im going full jank heh) |
Crashaholic (talk | contribs) (shortened it for a quicker response) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 37: | Line 37: | ||
} | } | ||
$('#citizen-pref-theme-option-auto').attr('onClick', 'refreshPage();'); | function attachRefresh() | ||
$('#citizen-pref-theme-option-dark').attr('onClick', 'refreshPage();'); | { | ||
$('#citizen-pref-theme-option-light').attr('onClick', 'refreshPage();'); | $('#citizen-pref-theme-option-auto').attr('onClick', 'refreshPage();'); | ||
$('#citizen-pref-theme-option-dark').attr('onClick', 'refreshPage();'); | |||
$('#citizen-pref-theme-option-light').attr('onClick', 'refreshPage();'); | |||
} | |||
function attachRefreshDelay() | |||
{ | |||
setTimeout(attachRefresh, 10); | |||
} | |||
setTimeout(function () {$('#citizen-pref-toggle').attr('onClick', 'attachRefreshDelay();');}, 200); |