Some cleanup
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / WoltLab / WCF / Bootstrap.js
index 62a02324314e994901ee6c6d18b324e72570fe45..8cd286fee1a27c00383c427a1ad3bebe4e00941e 100644 (file)
@@ -42,6 +42,18 @@ define(
                        UIDialog.setup();
                        UITooltip.setup();
                        
+                       // convert method=get into method=post
+                       var forms = document.querySelectorAll('form[method=get]');
+                       for (var i = 0, length = forms.length; i < length; i++) {
+                               forms[i].setAttribute('method', 'post');
+                       }
+                       
+                       if ($.browser.msie) {
+                               window.onbeforeunload = function() {
+                                       /* Prevent "Back navigation caching" (http://msdn.microsoft.com/en-us/library/ie/dn265017%28v=vs.85%29.aspx) */
+                               };
+                       }
+                       
                        $.holdReady(false);
                }
        };