소스 검색

[core] Switch from alert to throw for DataTables errors

Enrico Berti 11 년 전
부모
커밋
0f3cd42363
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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) {