Skip to content

Commit

Permalink
Code correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan-Aleev committed Feb 12, 2024
1 parent b77a7b3 commit c055bbf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions manager/assets/modext/workspace/lexicon/lexicon.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ Ext.extend(MODx.grid.Lexicon,MODx.grid.Grid,{
}
this.loadWindow(btn, e, o);
}

,reloadFromBase: function() {
namespace = this.getFilterComponent('filter-namespace').getValue(),
topic = this.getFilterComponent('filter-topic').getValue(),
Expand Down Expand Up @@ -294,20 +295,22 @@ Ext.extend(MODx.grid.Lexicon,MODx.grid.Grid,{
}
});
}

,revertEntry: function() {
var p = this.menu.record;
p.action = 'Workspace/Lexicon/Revert';

MODx.Ajax.request({
url: this.config.url
,params: p
,listeners: {
MODx.Ajax.request({
url: this.config.url
,params: p
,listeners: {
'success': {fn:function(r) {
this.refresh();
},scope:this}
}
});
});
}

,getMenu: function() {
var r = this.getSelectionModel().getSelected();
var m = [];
Expand Down

0 comments on commit c055bbf

Please sign in to comment.