]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/global.js
Added initial translation into German (formal)
[bookstack] / resources / assets / js / global.js
index ace0dcdd2642868430c55fd0af8b32e395c79707..9ca335ee7c4546f39b902b807d69c60ab4eff366 100644 (file)
@@ -134,17 +134,24 @@ $(function () {
     $('.popup-close').click(function() {
         $(this).closest('.overlay').fadeOut(240);
     });
-
     $('.overlay').click(function(event) {
         if (!$(event.target).hasClass('overlay')) return;
         $(this).fadeOut(240);
     });
 
+    // Prevent markdown display link click redirect
     $('.markdown-display').on('click', 'a', function(event) {
         event.preventDefault();
         window.open($(this).attr('href'));
     });
 
+    // Detect IE for css
+    if(navigator.userAgent.indexOf('MSIE')!==-1
+        || navigator.appVersion.indexOf('Trident/') > 0
+        || navigator.userAgent.indexOf('Safari') !== -1){
+        $('body').addClass('flexbox-support');
+    }
+
 });
 
 // Page specific items