Skip to content

Commit

Permalink
1.1.3 - fixed bug, where column based condition wasn´t refreshed afte…
Browse files Browse the repository at this point in the history
…r grid view changed

fixes #2
  • Loading branch information
Daniel Hochleitner committed Jan 15, 2018
1 parent a5ea0f7 commit 7ca0feb
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 79 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Dynamic Action Plugin to extend the Standard Row Action Menu (Burger Button) in

## Changelog

#### 1.1.2 - fixed bug, there menu entries disappeared when grid view changed
#### 1.1.3 - fixed bug, where column based condition wasn´t refreshed after grid view changed

#### 1.1.2 - fixed bug, where menu entries disappeared when grid view changed

#### 1.1.1 - Better debug logging, some code improvements

Expand Down
2 changes: 1 addition & 1 deletion apexplugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "Extend IG Menu",
"version" : "1.1.2",
"version" : "1.1.3",
"description" : "Dynamic Action Plugin to extend the Standard Row Action Menu (Burger Button) in Interactive Grid (APEX 5.1) with custom Menu Entries.",
"keywords" : ["extend","menu","list","ig","interactive","grid"],
"homepage" : "https://github.com/Dani3lSun/apex-plugin-extend_ig_menu",
Expand Down
6 changes: 3 additions & 3 deletions server/extendGridMenu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Extend IG Menu
// Author: Daniel Hochleitner
// Version: 1.1.2
// Version: 1.1.3

// global namespace
var extendGridMenu = {
Expand Down Expand Up @@ -172,13 +172,13 @@ var extendGridMenu = {
if (hideConditionType == 'COLUMN' || disableConditionType == 'COLUMN') {
// save menu button, will need it for grid.getContextRecord
var clickedMenuButton;
$('#' + regionId).click('button[data-menu="' + regionId + '_ig_row_actions_menu"]', function(event) {
$('#' + regionId).find('.a-IG-body').click('button[data-menu="' + regionId + '_ig_row_actions_menu"]', function(event) {
clickedMenuButton = event.target;
// Logging
apex.debug.log('menu button click - event.target', clickedMenuButton);
});
// open action menu event
grid.rowActionMenu$.on('menubeforeopen', function(event, ui) {
$('body').on('menubeforeopen', '#' + grid.rowActionMenu$[0].id, function(event, ui) {
// get context record of row
var record = grid.getContextRecord(clickedMenuButton)[0];
gridObject.record = record;
Expand Down
17 changes: 10 additions & 7 deletions server/extendGridMenu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7ca0feb

Please sign in to comment.