Skip to content

Commit fa3aaad

Browse files
author
Jim Graham
authored
Remove unused refreshTVs method (#15882)
1 parent 718c3b7 commit fa3aaad

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

manager/assets/modext/widgets/resource/modx.panel.resource.tv.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,5 @@ Ext.extend(MODx.panel.ResourceTV,MODx.Panel,{
2626
autoload: function() {
2727
return false;
2828
}
29-
,refreshTVs: function() {
30-
return false;
31-
var t = Ext.getCmp(this.config.templateField);
32-
if (!t && !this.config.template) { return false; }
33-
var template = this.config.template ? this.config.template : t.getValue();
34-
35-
this.getUpdater().update({
36-
url: MODx.config.manager_url+'?a=resource/tvs'
37-
,method: 'GET'
38-
,params: {
39-
'class_key': this.config.class_key
40-
,'template': template
41-
,'resource': this.config.resource
42-
}
43-
,scripts: true
44-
,callback: function() {
45-
this.fireEvent('load');
46-
if (MODx.afterTVLoad) { MODx.afterTVLoad(); }
47-
}
48-
,scope: this
49-
});
50-
}
5129
});
5230
Ext.reg('modx-panel-resource-tv',MODx.panel.ResourceTV);

manager/templates/default/resource/sections/tvs.tpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ Ext.onReady(function() {
7575
id = id[3];
7676
MODx.resetTV(id);
7777
});
78-
MODx.refreshTVs = function() {
79-
if (MODx.unloadTVRTE) { MODx.unloadTVRTE(); }
80-
Ext.getCmp('modx-panel-resource-tv').refreshTVs();
81-
};
8278
{/literal}{if $tvcount GT 0}{literal}
8379
MODx.load({
8480
xtype: 'modx-vtabs'

0 commit comments

Comments
 (0)