Browse Source

[core] Switch from alert to throw for DataTables errors

Enrico Berti 10 years ago
parent
commit
0f3cd42363
1 changed files with 2 additions and 0 deletions
  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) {