Эх сурвалжийг харах

[core] Switch from alert to throw for DataTables errors

Enrico Berti 10 жил өмнө
parent
commit
0f3cd42363

+ 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) {