5 ui.DialogPanel = ui.DraggablePanel.extend({
6 _commit_handler: function(jEv) {
7 this.fire("commit", this, { jEv: jEv });
9 _main_template: function() {
10 var t = this._super();
11 t.children.push(this._actionsBar_template());
14 _actionsBar_template: function() {
15 return { tag: "DIV", cls: "pull-right", children: [
16 new app.ui.Button({ label: "Cancel", onclick: this._close_handler }),
17 new app.ui.Button({ label: "OK", onclick: this._commit_handler })