Merging resourceloader branch into trunk. Full documentation is at http://www.mediawi...
[lhc/web/wiklou.git] / skins / common / block.js
index ad04f81..73ed71e 100644 (file)
@@ -1,6 +1,4 @@
-addOnloadHook( considerChangingExpiryFocus );
-
-function considerChangingExpiryFocus() {
+window.considerChangingExpiryFocus = function() {
        if ( !document.getElementById ) {
                return;
        }
@@ -19,8 +17,7 @@ function considerChangingExpiryFocus() {
                field.style.display = 'none';
        }
 }
-
-function updateBlockOptions() {
+window.updateBlockOptions = function() {
        if ( !document.getElementById ) {
                return;
        }
@@ -55,3 +52,5 @@ function updateBlockOptions() {
                watchuserRow.style.display = isIpRange && !isEmpty ? 'none' : '';
        }
 }
+
+addOnloadHook( considerChangingExpiryFocus );
\ No newline at end of file