Permalink
Browse files

Prewventing creating a grid in quirks mode.

  • Loading branch information...
1 parent 0051fe7 commit 18930eff8a3984519607a872436713d6326ca897 @tonytomov committed Jun 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 js/grid.base.js
View
@@ -924,6 +924,12 @@ $.fn.jqGrid = function( pin ) {
alert("Element is not a table");
return;
}
+ if(document.documentMode !== undefined ) { // IE only
+ if(document.documentMode <= 5) {
+ alert("Grid can not be used in this ('quirks') mode!");
+ return;
+ }
+ }
$(this).empty().attr("tabindex","1");
this.p = p ;
this.p.useProp = !!$.fn.prop;

0 comments on commit 18930ef

Please sign in to comment.