Explorar o código

[core] Switch from alert to throw for DataTables errors

Enrico Berti %!s(int64=10) %!d(string=hai) anos
pai
achega
0f3cd42363
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      desktop/core/src/desktop/templates/common_header.mako

+ 2 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -204,6 +204,8 @@ from django.utils.translation import ugettext as _
       return xrhsend.apply(this, arguments);
     }
 
+    $.fn.dataTableExt.sErrMode = "throw";
+
     $(document).ready(function () {
       // forces IE's ajax calls not to cache
       if ($.browser.msie) {