mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
22 lines
512 B
JavaScript
22 lines
512 B
JavaScript
|
TaskList = Class.extend('SidePanel');
|
||
|
TaskList.prototype = {
|
||
|
destroy: function() {
|
||
|
if(this.SidePanel) this.SidePanel.destroy();
|
||
|
this.SidePanel = null;
|
||
|
},
|
||
|
/**
|
||
|
* Called after the panel has been ajax-loaded in
|
||
|
*/
|
||
|
afterPanelLoaded : function() {
|
||
|
TaskListRecord.applyTo('#' + this.id + ' a');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
TaskListRecord = SidePanelRecord;
|
||
|
|
||
|
TaskListRecord.applyTo('#tasklist_holder a');
|
||
|
TaskList.applyTo('#tasklist_holder');
|
||
|
|
||
|
TaskListRecord.applyTo('#waiting_holder a');
|
||
|
TaskList.applyTo('#waitingon_holder');
|