Skip to content
Browse files

variable is not visible, replace with jQuery selector

  • Loading branch information...
1 parent feecb59 commit 994395d872b0b8ca1a2f5efbd40ea1561361273a Rinat Khaziev committed Feb 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 common/js/acm.js
View
4 common/js/acm.js
@@ -40,8 +40,8 @@ jQuery( document ).ready( function( $ ) {
var ids = grid_selector.jqGrid( 'getDataIDs' );
for(var i=0;i < ids.length;i++){
var cl = ids[i];
- be = "<input type='button' value='Edit' onclick=\"grid_selector.editRow( '"+cl+"' );\" class='button' />";
- se = "<input type='button' value='Save' onclick=\"grid_selector.saveRow( '"+cl+"' );\" class='button button-primary' />";
+ be = "<input type='button' value='Edit' onclick=\"jQuery('#acm-codes-list').editRow( '"+cl+"' );\" class='button' />";
+ se = "<input type='button' value='Save' onclick=\"jQuery('#acm-codes-list').saveRow( '"+cl+"' );\" class='button button-primary' />";
grid_selector.jqGrid( 'setRowData',ids[i],{act:be+se});
}

0 comments on commit 994395d

Please sign in to comment.
Something went wrong with that request. Please try again.