81
Bug Report / Re: Please change one line of code in next version
« Last post by paramvir on October 30, 2024, 01:07:15 pm »Noted, thanks.
var that=this,
jq = $("<span>", {html"O"})
.click(function(e){ that.do_something(this); })
.data("dta", {"id":2, "name":"O"})
.add(
$("<span>", {html"X"})
.click(function(e){ that.do_something_else(this); })
.data("dta", {"id":2, "name":"O"})
);
return {jquery: jq};
var rule = { condition: ui.column.filter.crules[0].condition, dataIndx: ui.column.dataIndx, value: ui.value, value2: ui.value2 },
CM = this.grid.pqGrid("getColModel");
// Check if the filter is not already applied
for(var i=0, len = CM.length; i < len; i++){
// If there is no change
if( CM[i]["dataIndx"]===ui.column.dataIndx && ui.value===CM[i]["filter"]["crules"][0]["value"] && ui.value2===CM[i]["filter"]["crules"][0]["value2"] )
rule = null;
}
// If we have a rule, apply it
if(rule)
this.grid.pqGrid("filter", {
oper: "add",
rules: [
rule
]
});
(function($) {
var fn = $.paramquery._pqGrid.prototype;
fn.showLoading = function() {
if(this.$grid_center.is(":visible"))
{
this.loading = true;
open_loading_overlay();
}
};
fn.hideLoading = function() {
this.loading = false;
close_loading_overlay();
};
})(jQuery);
calcTopBottom: function(left) {
if(typeof(this.dims)==="undefined") return 0;
...
getTop: function(ri, actual) {
var top = this.topArr ? this.topArr[ri] : 0,
...
getLeft: function(_ci, actual) {
if(typeof(this.leftArr)==="undefined") return 0;
...