Skip to content

Commit

Permalink
minimal changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegKi committed Jan 26, 2015
1 parent 08d8603 commit 60a5496
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/jquery.fmatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,11 @@
return cellval === "" ? $FnFmatter.defaultFormat(cellval,opts) : cellval;
};
$FnFmatter.rowactions = function(act) {
var $tr = $(this).closest("tr.jqgrow"),
rid = $tr.attr("id"),
var cm = p.colModel[jgrid.getCellIndex(this)], $tr = $(this).closest("tr.jqgrow"), rid = $tr.attr("id"),
$id = $(this).closest("table.ui-jqgrid-btable").attr('id').replace(/_frozen([^_]*)$/,'$1'),
$grid = $("#"+jgrid.jqID($id)),
$t = $grid[0],
p = $t.p,
cm = p.colModel[jgrid.getCellIndex(this)],
$actionsDiv = cm.frozen ? $("tr#"+jgrid.jqID(rid)+" td:eq("+jgrid.getCellIndex(this)+") > div",$grid) :$(this).parent(),
op = {
extraparam: {}
Expand Down Expand Up @@ -287,8 +285,7 @@
restoreAfterError: op.restoreAfterError,
mtype: op.mtype
};
switch(act)
{
switch(act) {
case 'edit':
$grid.jqGrid('editRow', rid, actop);
$actionsDiv.find("div.ui-inline-edit,div.ui-inline-del").hide();
Expand Down

0 comments on commit 60a5496

Please sign in to comment.