jqgrid-jquery-rails 4.4.3.0 → 4.4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jqgrid-jquery-rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.jqGrid.js +73 -65
- data/vendor/assets/stylesheets/ui.jqgrid.css +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01b1119869250eecba573da19e3c8e98c8c016bb
|
4
|
+
data.tar.gz: 61fca99bdf4056ef69936ec9b96a01464f8caebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44372d1f6771167ad22c8b8694047bd35fb5d3ab4b9d749b343e486ca009c8327aea39e9ebf37a5c2978f33d7cb8b9da4c77616791a8792c9fd9f9ae41ead3ae
|
7
|
+
data.tar.gz: ad40189123c70b8384fde417ec3d25bd04320a15c2206c82ffd05fa591faa6bd0ba594e2b1402e864f277ba99e4721199c75b783996597eee8e05a6f48421383
|
data/README.md
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
// @compilation_level SIMPLE_OPTIMIZATIONS
|
3
3
|
|
4
4
|
/**
|
5
|
-
* @license jqGrid 4.4.
|
5
|
+
* @license jqGrid 4.4.4 - jQuery Grid
|
6
6
|
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
|
7
7
|
* Dual licensed under the MIT and GPL licenses
|
8
8
|
* http://www.opensource.org/licenses/mit-license.php
|
9
9
|
* http://www.gnu.org/licenses/gpl-2.0.html
|
10
|
-
* Date: 2013-01-
|
10
|
+
* Date: 2013-01-30
|
11
11
|
*/
|
12
12
|
//jsHint options
|
13
13
|
/*jshint evil:true, eqeqeq:false, eqnull:true, devel:true */
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"use strict";
|
18
18
|
$.jgrid = $.jgrid || {};
|
19
19
|
$.extend($.jgrid,{
|
20
|
-
version : "4.4.
|
20
|
+
version : "4.4.4",
|
21
21
|
htmlDecode : function(value){
|
22
22
|
if(value && (value==' ' || value==' ' || (value.length===1 && value.charCodeAt(0)===160))) { return "";}
|
23
23
|
return !value ? value : String(value).replace(/>/g, ">").replace(/</g, "<").replace(/"/g, '"').replace(/&/g, "&");
|
@@ -32,11 +32,21 @@ $.extend($.jgrid,{
|
|
32
32
|
return args[i];
|
33
33
|
});
|
34
34
|
},
|
35
|
+
msie : navigator.appName == 'Microsoft Internet Explorer',
|
36
|
+
msiever : function () {
|
37
|
+
var rv = -1;
|
38
|
+
var ua = navigator.userAgent;
|
39
|
+
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
|
40
|
+
if (re.exec(ua) != null) {
|
41
|
+
rv = parseFloat( RegExp.$1 );
|
42
|
+
}
|
43
|
+
return rv;
|
44
|
+
},
|
35
45
|
getCellIndex : function (cell) {
|
36
46
|
var c = $(cell);
|
37
47
|
if (c.is('tr')) { return -1; }
|
38
48
|
c = (!c.is('td') && !c.is('th') ? c.closest("td,th") : c)[0];
|
39
|
-
if ($.
|
49
|
+
if ($.jgrid.msie) { return $.inArray(c, c.parentNode.cells); }
|
40
50
|
return c.cellIndex;
|
41
51
|
},
|
42
52
|
stripHtml : function(v) {
|
@@ -141,7 +151,7 @@ $.extend($.jgrid,{
|
|
141
151
|
return new Date(tsp.y, tsp.m, tsp.d, tsp.h, tsp.i, tsp.s, tsp.u);
|
142
152
|
},
|
143
153
|
jqID : function(sid){
|
144
|
-
return String(sid).replace(/[!"#$%&'()
|
154
|
+
return String(sid).replace(/[!"#$%&'()*+,.\/:; <=>?@\[\\\]\^`{|}~]/g,"\\$&");
|
145
155
|
},
|
146
156
|
guid : 1,
|
147
157
|
uidPref: 'jqg',
|
@@ -191,7 +201,7 @@ $.extend($.jgrid,{
|
|
191
201
|
$testDiv.remove();
|
192
202
|
return testCell !== 5;
|
193
203
|
},
|
194
|
-
cell_width : true,
|
204
|
+
cell_width : true,
|
195
205
|
ajaxOptions: {},
|
196
206
|
from : function(source){
|
197
207
|
// Original Author Hugo Bonacci
|
@@ -690,6 +700,7 @@ $.fn.jqGrid = function( pin ) {
|
|
690
700
|
onRightClickRow: null,
|
691
701
|
onPaging: null,
|
692
702
|
onSelectAll: null,
|
703
|
+
onInitGrid : null,
|
693
704
|
loadComplete: null,
|
694
705
|
gridComplete: null,
|
695
706
|
loadError: null,
|
@@ -946,21 +957,18 @@ $.fn.jqGrid = function( pin ) {
|
|
946
957
|
alert($.jgrid.errors.model);
|
947
958
|
return;
|
948
959
|
}
|
949
|
-
var gv = $("<div class='ui-jqgrid-view'></div>"),
|
950
|
-
isMSIE = $.
|
960
|
+
var gv = $("<div class='ui-jqgrid-view'></div>"),
|
961
|
+
isMSIE = $.jgrid.msie;
|
951
962
|
ts.p.direction = $.trim(ts.p.direction.toLowerCase());
|
952
963
|
if($.inArray(ts.p.direction,["ltr","rtl"]) == -1) { ts.p.direction = "ltr"; }
|
953
964
|
dir = ts.p.direction;
|
954
965
|
|
955
966
|
$(gv).insertBefore(this);
|
956
|
-
$(this).
|
967
|
+
$(this).removeClass("scroll").appendTo(gv);
|
957
968
|
var eg = $("<div class='ui-jqgrid ui-widget ui-widget-content ui-corner-all'></div>");
|
958
|
-
$(eg).
|
959
|
-
$(gv).
|
960
|
-
|
961
|
-
ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>';
|
962
|
-
} else { ii="";}
|
963
|
-
$("<div class='ui-widget-overlay jqgrid-overlay' id='lui_"+this.id+"'></div>").append(ii).insertBefore(gv);
|
969
|
+
$(eg).attr({"id" : "gbox_"+this.id,"dir":dir}).insertBefore(gv);
|
970
|
+
$(gv).attr("id","gview_"+this.id).appendTo(eg);
|
971
|
+
$("<div class='ui-widget-overlay jqgrid-overlay' id='lui_"+this.id+"'></div>").insertBefore(gv);
|
964
972
|
$("<div class='loading ui-state-default ui-state-active' id='load_"+this.id+"'>"+this.p.loadtext+"</div>").insertBefore(gv);
|
965
973
|
$(this).attr({cellspacing:"0",cellpadding:"0",border:"0","role":"grid","aria-multiselectable":!!this.p.multiselect,"aria-labelledby":"gbox_"+this.id});
|
966
974
|
var sortkeys = ["shiftKey","altKey","ctrlKey"],
|
@@ -1585,11 +1593,11 @@ $.fn.jqGrid = function( pin ) {
|
|
1585
1593
|
}
|
1586
1594
|
}
|
1587
1595
|
if (group.rules != null) {
|
1588
|
-
if(s>0) {
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
}
|
1596
|
+
//if(s>0) {
|
1597
|
+
// var result = query.select();
|
1598
|
+
// query = $.jgrid.from( result);
|
1599
|
+
// if (ts.p.ignoreCase) { query = query.ignoreCase(); }
|
1600
|
+
//}
|
1593
1601
|
try{
|
1594
1602
|
ror = group.rules.length && group.groupOp.toString().toUpperCase() === "OR";
|
1595
1603
|
if (ror) {
|
@@ -2143,19 +2151,16 @@ $.fn.jqGrid = function( pin ) {
|
|
2143
2151
|
return j-ret;
|
2144
2152
|
},
|
2145
2153
|
getOffset = function (iCol) {
|
2146
|
-
var i, ret =
|
2147
|
-
ret[0] = ret[1] = ret[2] = 0;
|
2154
|
+
var i, ret = [0], brd1 = $.jgrid.cell_width ? 0 : ts.p.cellLayout;
|
2148
2155
|
for(i=0;i<=iCol;i++){
|
2149
2156
|
if(ts.p.colModel[i].hidden === false ) {
|
2150
2157
|
ret[0] += ts.p.colModel[i].width+brd1;
|
2151
2158
|
}
|
2152
2159
|
}
|
2153
2160
|
if(ts.p.direction=="rtl") { ret[0] = ts.p.width - ret[0]; }
|
2154
|
-
ret[0]
|
2155
|
-
|
2156
|
-
|
2157
|
-
if(ts.p.toppager) {ret[1] += $(ts.grid.topDiv).height()+parseInt($(ts.grid.topDiv).css("border-bottom-width"),10);}
|
2158
|
-
ret[2] += $(ts.grid.bDiv).height() + $(ts.grid.hDiv).height();
|
2161
|
+
ret[0] -= ts.grid.bDiv.scrollLeft;
|
2162
|
+
ret.push($(ts.grid.hDiv).position().top);
|
2163
|
+
ret.push($(ts.grid.bDiv).offset().top - $(ts.grid.hDiv).offset().top + $(ts.grid.bDiv).height());
|
2159
2164
|
return ret;
|
2160
2165
|
},
|
2161
2166
|
getColumnHeaderIndex = function (th) {
|
@@ -2334,8 +2339,8 @@ $.fn.jqGrid = function( pin ) {
|
|
2334
2339
|
if(ts.p.colModel[j].resizable === undefined) {ts.p.colModel[j].resizable = true;}
|
2335
2340
|
if(ts.p.colModel[j].resizable){
|
2336
2341
|
res = document.createElement("span");
|
2337
|
-
$(res).html(" ").addClass('ui-jqgrid-resize ui-jqgrid-resize-'+dir)
|
2338
|
-
|
2342
|
+
$(res).html(" ").addClass('ui-jqgrid-resize ui-jqgrid-resize-'+dir)
|
2343
|
+
.css("cursor","col-resize");
|
2339
2344
|
$(this).addClass(ts.p.resizeclass);
|
2340
2345
|
} else {
|
2341
2346
|
res = "";
|
@@ -2408,7 +2413,7 @@ $.fn.jqGrid = function( pin ) {
|
|
2408
2413
|
// TBD -- escape ts.p.pager here?
|
2409
2414
|
if(typeof ts.p.pager === "string") {if(ts.p.pager.substr(0,1) !="#") { ts.p.pager = "#"+ts.p.pager;} }
|
2410
2415
|
else { ts.p.pager = "#"+ $(ts.p.pager).attr("id");}
|
2411
|
-
$(ts.p.pager).css({width: grid.width+"px"}).
|
2416
|
+
$(ts.p.pager).css({width: grid.width+"px"}).addClass('ui-state-default ui-jqgrid-pager ui-corner-bottom').appendTo(eg);
|
2412
2417
|
if(hg) {$(ts.p.pager).hide();}
|
2413
2418
|
setPager(ts.p.pager,'');
|
2414
2419
|
}
|
@@ -2533,16 +2538,20 @@ $.fn.jqGrid = function( pin ) {
|
|
2533
2538
|
grid.bDiv = document.createElement("div");
|
2534
2539
|
if(isMSIE) { if(String(ts.p.height).toLowerCase() === "auto") { ts.p.height = "100%"; } }
|
2535
2540
|
$(grid.bDiv)
|
2536
|
-
.append($('<div style="position:relative;'+(isMSIE && $.
|
2541
|
+
.append($('<div style="position:relative;'+(isMSIE && $.jgrid.msiever() < 8 ? "height:0.01%;" : "")+'"></div>').append('<div></div>').append(this))
|
2537
2542
|
.addClass("ui-jqgrid-bdiv")
|
2538
2543
|
.css({ height: ts.p.height+(isNaN(ts.p.height)?"":"px"), width: (grid.width)+"px"})
|
2539
2544
|
.scroll(grid.scrollGrid);
|
2540
2545
|
$("table:first",grid.bDiv).css({width:ts.p.tblwidth+"px"});
|
2541
|
-
if(
|
2546
|
+
if( !$.support.tbody ) { //IE
|
2542
2547
|
if( $("tbody",this).length == 2 ) { $("tbody:gt(0)",this).remove();}
|
2543
|
-
|
2544
|
-
|
2545
|
-
if(
|
2548
|
+
}
|
2549
|
+
if(ts.p.multikey){
|
2550
|
+
if( $.jgrid.msie) {
|
2551
|
+
$(grid.bDiv).bind("selectstart",function(){return false;});
|
2552
|
+
} else {
|
2553
|
+
$(grid.bDiv).bind("mousedown",function(){return false;});
|
2554
|
+
}
|
2546
2555
|
}
|
2547
2556
|
if(hg) {$(grid.bDiv).hide();}
|
2548
2557
|
grid.cDiv = document.createElement("div");
|
@@ -2559,8 +2568,8 @@ $.fn.jqGrid = function( pin ) {
|
|
2559
2568
|
else if (ts.p.toolbar[1]=="bottom" ) {$(grid.uDiv).insertAfter(grid.hDiv);}
|
2560
2569
|
if(ts.p.toolbar[1]=="both") {
|
2561
2570
|
grid.ubDiv = document.createElement("div");
|
2562
|
-
$(grid.uDiv).
|
2563
|
-
$(grid.ubDiv).
|
2571
|
+
$(grid.uDiv).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id).insertBefore(grid.hDiv);
|
2572
|
+
$(grid.ubDiv).addClass("ui-userdata ui-state-default").attr("id","tb_"+this.id).insertAfter(grid.hDiv);
|
2564
2573
|
if(hg) {$(grid.ubDiv).hide();}
|
2565
2574
|
} else {
|
2566
2575
|
$(grid.uDiv).width(grid.width).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id);
|
@@ -2571,13 +2580,13 @@ $.fn.jqGrid = function( pin ) {
|
|
2571
2580
|
ts.p.toppager = $.jgrid.jqID(ts.p.id)+"_toppager";
|
2572
2581
|
grid.topDiv = $("<div id='"+ts.p.toppager+"'></div>")[0];
|
2573
2582
|
ts.p.toppager = "#"+ts.p.toppager;
|
2574
|
-
$(grid.topDiv).
|
2583
|
+
$(grid.topDiv).addClass('ui-state-default ui-jqgrid-toppager').width(grid.width).insertBefore(grid.hDiv);
|
2575
2584
|
setPager(ts.p.toppager,'_t');
|
2576
2585
|
}
|
2577
2586
|
if(ts.p.footerrow) {
|
2578
2587
|
grid.sDiv = $("<div class='ui-jqgrid-sdiv'></div>")[0];
|
2579
2588
|
hb = $("<div class='ui-jqgrid-hbox"+(dir=="rtl"?"-rtl":"")+"'></div>");
|
2580
|
-
$(grid.sDiv).append(hb).
|
2589
|
+
$(grid.sDiv).append(hb).width(grid.width).insertAfter(grid.hDiv);
|
2581
2590
|
$(hb).append(tfoot);
|
2582
2591
|
grid.footers = $(".ui-jqgrid-ftable",grid.sDiv)[0].rows[0].cells;
|
2583
2592
|
if(ts.p.rownumbers) { grid.footers[0].className = 'ui-state-default jqgrid-rownum'; }
|
@@ -2649,6 +2658,8 @@ $.fn.jqGrid = function( pin ) {
|
|
2649
2658
|
ts.addXmlData = function(d) {addXmlData(d,ts.grid.bDiv);};
|
2650
2659
|
ts.addJSONData = function(d) {addJSONData(d,ts.grid.bDiv);};
|
2651
2660
|
this.grid.cols = this.rows[0].cells;
|
2661
|
+
$(ts).triggerHandler("jqGridInitGrid");
|
2662
|
+
if ($.isFunction( ts.p.onInitGrid )) { ts.p.onInitGrid.call(ts); }
|
2652
2663
|
|
2653
2664
|
populate();ts.p.hiddengrid=false;
|
2654
2665
|
});
|
@@ -3860,11 +3871,7 @@ $.jgrid.extend({
|
|
3860
3871
|
$($t).jqGrid("restoreCell",iRow,iCol);
|
3861
3872
|
}
|
3862
3873
|
}
|
3863
|
-
|
3864
|
-
$("#"+$.jgrid.jqID($t.p.knv)).attr("tabindex","-1").focus();
|
3865
|
-
} else {
|
3866
|
-
window.setTimeout(function () { $("#"+$.jgrid.jqID($t.p.knv)).attr("tabindex","-1").focus();},0);
|
3867
|
-
}
|
3874
|
+
window.setTimeout(function () { $("#"+$.jgrid.jqID($t.p.knv)).attr("tabindex","-1").focus();},0);
|
3868
3875
|
});
|
3869
3876
|
},
|
3870
3877
|
restoreCell : function(iRow, iCol) {
|
@@ -5959,7 +5966,7 @@ $.fn.jqFilter = function( arg ) {
|
|
5959
5966
|
}
|
5960
5967
|
$(".selectopts",trpar).empty().append( s );
|
5961
5968
|
$(".selectopts",trpar)[0].selectedIndex = 0;
|
5962
|
-
if( $.
|
5969
|
+
if( $.jgrid.msie && $.jgrid.msiever() < 9) {
|
5963
5970
|
var sw = parseInt($("select.selectopts",trpar)[0].offsetWidth, 10) + 1;
|
5964
5971
|
$(".selectopts",trpar).width( sw );
|
5965
5972
|
$(".selectopts",trpar).css("width","auto");
|
@@ -6596,6 +6603,7 @@ $.jgrid.extend({
|
|
6596
6603
|
top : 0,
|
6597
6604
|
left: 0,
|
6598
6605
|
width: 300,
|
6606
|
+
datawidth: 'auto',
|
6599
6607
|
height: 'auto',
|
6600
6608
|
dataheight: 'auto',
|
6601
6609
|
modal: false,
|
@@ -6769,7 +6777,7 @@ $.jgrid.extend({
|
|
6769
6777
|
if(tmp === "" && this.edittype == "select") {tmp = $("option:eq(0)",elc).text();}
|
6770
6778
|
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {rp_ge[$t.p.id]._savedData[nm] = tmp;}
|
6771
6779
|
$(elc).addClass("FormElement");
|
6772
|
-
if(this.edittype
|
6780
|
+
if( $.inArray(this.edittype, ['text','textarea','password','select']) > -1) {
|
6773
6781
|
$(elc).addClass("ui-widget-content ui-corner-all");
|
6774
6782
|
}
|
6775
6783
|
trdata = $(tb).find("tr[rowpos="+rp+"]");
|
@@ -7270,7 +7278,8 @@ $.jgrid.extend({
|
|
7270
7278
|
if(onAfterShow) { onAfterShow.call($t, $("#"+frmgr)); }
|
7271
7279
|
} else {
|
7272
7280
|
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px",
|
7273
|
-
|
7281
|
+
dw = isNaN(p.datawidth) ? p.datawidth : p.datawidth+"px",
|
7282
|
+
frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' onSubmit='return false;' style='width:"+dw+";overflow:auto;position:relative;height:"+dh+";'></form>").data("disabled",false),
|
7274
7283
|
tbl = $("<table id='"+frmtborg+"' class='EditTable' cellspacing='0' cellpadding='0' border='0'><tbody></tbody></table>");
|
7275
7284
|
showFrm = $($t).triggerHandler("jqGridAddEditBeforeInitData", [$("#"+frmgr), frmoper]);
|
7276
7285
|
if(showFrm === undefined) {
|
@@ -7329,7 +7338,7 @@ $.jgrid.extend({
|
|
7329
7338
|
p.closeOnEscape = false;
|
7330
7339
|
cle = true;
|
7331
7340
|
}
|
7332
|
-
var tms = $("<
|
7341
|
+
var tms = $("<div></div>").append(frm).append(bt);
|
7333
7342
|
$.jgrid.createModal(IDs,tms,p,"#gview_"+$.jgrid.jqID($t.p.id),$("#gbox_"+$.jgrid.jqID($t.p.id))[0]);
|
7334
7343
|
if(rtlb) {
|
7335
7344
|
$("#pData, #nData",frmtb+"_2").css("float","right");
|
@@ -7388,11 +7397,8 @@ $.jgrid.extend({
|
|
7388
7397
|
bS ="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bYes+"</a>";
|
7389
7398
|
bN ="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bNo+"</a>";
|
7390
7399
|
bC ="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bExit+"</a>";
|
7391
|
-
var
|
7392
|
-
|
7393
|
-
ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>';
|
7394
|
-
} else {ii="";}
|
7395
|
-
$("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'> "+ii+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
|
7400
|
+
var zI = p.zIndex || 999;zI ++;
|
7401
|
+
$("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'> "+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
|
7396
7402
|
$("#sNew","#"+$.jgrid.jqID(IDs.themodal)).click(function(){
|
7397
7403
|
postIt();
|
7398
7404
|
$("#"+frmgr).data("disabled",false);
|
@@ -7517,6 +7523,7 @@ $.jgrid.extend({
|
|
7517
7523
|
top : 0,
|
7518
7524
|
left: 0,
|
7519
7525
|
width: 0,
|
7526
|
+
datawidth: 'auto',
|
7520
7527
|
height: 'auto',
|
7521
7528
|
dataheight: 'auto',
|
7522
7529
|
modal: false,
|
@@ -7693,8 +7700,9 @@ $.jgrid.extend({
|
|
7693
7700
|
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{gbox:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, jqM: false, overlay: p.overlay, modal:p.modal});
|
7694
7701
|
focusaref();
|
7695
7702
|
} else {
|
7696
|
-
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px"
|
7697
|
-
|
7703
|
+
var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px",
|
7704
|
+
dw = isNaN(p.datawidth) ? p.datawidth : p.datawidth+"px",
|
7705
|
+
frm = $("<form name='FormPost' id='"+frmgr_id+"' class='FormGrid' style='width:"+dw+";overflow:auto;position:relative;height:"+dh+";'></form>"),
|
7698
7706
|
tbl =$("<table id='"+frmtb_id+"' class='EditTable' cellspacing='1' cellpadding='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");
|
7699
7707
|
if(onBeforeInit) {
|
7700
7708
|
showFrm = onBeforeInit.call($t,$("#"+frmgr));
|
@@ -7734,7 +7742,7 @@ $.jgrid.extend({
|
|
7734
7742
|
});
|
7735
7743
|
}
|
7736
7744
|
p.gbox = "#gbox_"+$.jgrid.jqID(gID);
|
7737
|
-
var bt = $("<
|
7745
|
+
var bt = $("<div></div>").append(frm).append("<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton' width='"+p.labelswidth+"'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton'>"+bC+"</td></tr></tbody></table>");
|
7738
7746
|
$.jgrid.createModal(IDs,bt,p,"#gview_"+$.jgrid.jqID($t.p.id),$("#gview_"+$.jgrid.jqID($t.p.id))[0]);
|
7739
7747
|
if(rtlb) {
|
7740
7748
|
$("#pData, #nData","#"+frmtb+"_2").css("float","right");
|
@@ -7764,7 +7772,7 @@ $.jgrid.extend({
|
|
7764
7772
|
.append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
|
7765
7773
|
}
|
7766
7774
|
if($.isFunction(p.beforeShowForm)) {p.beforeShowForm.call($t,$("#"+frmgr));}
|
7767
|
-
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{gbox:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, modal:p.modal});
|
7775
|
+
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{gbox:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal,overlay: p.overlay, modal:p.modal});
|
7768
7776
|
$(".fm-button:not(.ui-state-disabled)","#"+frmtb+"_2").hover(
|
7769
7777
|
function(){$(this).addClass('ui-state-hover');},
|
7770
7778
|
function(){$(this).removeClass('ui-state-hover');}
|
@@ -7877,8 +7885,9 @@ $.jgrid.extend({
|
|
7877
7885
|
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{gbox:"#gbox_"+$.jgrid.jqID(gID),jqm:rp_ge[$t.p.id].jqModal,jqM: false, overlay: rp_ge[$t.p.id].overlay, modal:rp_ge[$t.p.id].modal});
|
7878
7886
|
if(onAfterShow) {rp_ge[$t.p.id].afterShowForm.call($t,$("#"+dtbl));}
|
7879
7887
|
} else {
|
7880
|
-
var dh = isNaN(rp_ge[$t.p.id].dataheight) ? rp_ge[$t.p.id].dataheight : rp_ge[$t.p.id].dataheight+"px"
|
7881
|
-
|
7888
|
+
var dh = isNaN(rp_ge[$t.p.id].dataheight) ? rp_ge[$t.p.id].dataheight : rp_ge[$t.p.id].dataheight+"px",
|
7889
|
+
dw = isNaN(p.datawidth) ? p.datawidth : p.datawidth+"px",
|
7890
|
+
tbl = "<div id='"+dtbl_id+"' class='formdata' style='width:"+dw+";overflow:auto;position:relative;height:"+dh+";'>";
|
7882
7891
|
tbl += "<table class='DelTable'><tbody>";
|
7883
7892
|
// error data
|
7884
7893
|
tbl += "<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";
|
@@ -9133,7 +9142,7 @@ $.jgrid.extend({
|
|
9133
9142
|
else { $(this).append(elc); }
|
9134
9143
|
$.jgrid.bindEv( elc, opt, $t);
|
9135
9144
|
//Again IE
|
9136
|
-
if(cm[i].edittype == "select" && cm[i].editoptions!==undefined && cm[i].editoptions.multiple===true && cm[i].editoptions.dataUrl===undefined && $.
|
9145
|
+
if(cm[i].edittype == "select" && cm[i].editoptions!==undefined && cm[i].editoptions.multiple===true && cm[i].editoptions.dataUrl===undefined && $.jgrid.msie) {
|
9137
9146
|
$(elc).width($(elc).width());
|
9138
9147
|
}
|
9139
9148
|
cnt++;
|
@@ -9679,7 +9688,7 @@ $.jgrid.extend({
|
|
9679
9688
|
* depends on jQuery UI
|
9680
9689
|
**/
|
9681
9690
|
"use strict";
|
9682
|
-
if ($.
|
9691
|
+
if ($.jgrid.msie && $.jgrid.msiever()==8) {
|
9683
9692
|
$.expr[":"].hidden = function(elem) {
|
9684
9693
|
return elem.offsetWidth === 0 || elem.offsetHeight === 0 ||
|
9685
9694
|
elem.style.display == "none";
|
@@ -10210,7 +10219,7 @@ setSubGrid : function () {
|
|
10210
10219
|
};
|
10211
10220
|
$t.p.subGridOptions = $.extend(suboptions, $t.p.subGridOptions || {});
|
10212
10221
|
$t.p.colNames.unshift("");
|
10213
|
-
$t.p.colModel.unshift({name:'subgrid',width:
|
10222
|
+
$t.p.colModel.unshift({name:'subgrid',width: $.jgrid.cell_width ? $t.p.subGridWidth+$t.p.cellLayout : $t.p.subGridWidth,sortable: false,resizable:false,hidedlg:true,search:false,fixed:true});
|
10214
10223
|
cm = $t.p.subGridModel;
|
10215
10224
|
if(cm[0]) {
|
10216
10225
|
cm[0].align = $.extend([],cm[0].align || []);
|
@@ -11387,7 +11396,6 @@ open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-i
|
|
11387
11396
|
else o=F;
|
11388
11397
|
|
11389
11398
|
h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;
|
11390
|
-
if(ie6){try{$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in {Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}}catch(__){}}
|
11391
11399
|
|
11392
11400
|
if(c.ajax) {var r=c.target||h.w,u=c.ajax;r=(typeof r == 'string')?$(r,h.w):$(r);u=(u.substr(0,1) == '@')?$(t).attr(u.substring(1)):u;
|
11393
11401
|
r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});}
|
@@ -11402,8 +11410,8 @@ close:function(s){var h=H[s];if(!h.a)return F;h.a=F;
|
|
11402
11410
|
if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();} return F;
|
11403
11411
|
},
|
11404
11412
|
params:{}};
|
11405
|
-
var s=0,H=$.jqm.hash,A=[],
|
11406
|
-
e=function(h){
|
11413
|
+
var s=0,H=$.jqm.hash,A=[],F=false,
|
11414
|
+
e=function(h){f(h);},
|
11407
11415
|
f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}},
|
11408
11416
|
L=function(t){$(document)[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},
|
11409
11417
|
m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return !r;},
|
@@ -106,6 +106,7 @@ tr.ui-search-toolbar select {margin: 1px 0 0 0}
|
|
106
106
|
.ui-jqdialog-content td.EditButton {text-align: right;border-top: 0 none;border-left: 0 none;border-right: 0 none; padding-bottom:5px; padding-top:5px;}
|
107
107
|
.ui-jqdialog-content td.navButton {text-align: center; border-left: 0 none;border-top: 0 none;border-right: 0 none; padding-bottom:5px; padding-top:5px;}
|
108
108
|
.ui-jqdialog-content input.FormElement {padding:.3em}
|
109
|
+
.ui-jqdialog-content select.FormElement {padding:.3em}
|
109
110
|
.ui-jqdialog-content .data-line {padding-top:.1em;border: 0 none;}
|
110
111
|
|
111
112
|
.ui-jqdialog-content .CaptionTD {vertical-align: middle;border: 0 none; padding: 2px;white-space: nowrap;}
|