mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-06 17:51:17 +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');
|