80176fda898f65cd2def06a72ea92b82a9bfe2c2
[ccsdk/features.git] /
1 (function( app ) {
2
3         var ui = app.ns("ui");
4
5         ui.DialogPanel = ui.DraggablePanel.extend({
6                 _commit_handler: function(jEv) {
7                         this.fire("commit", this, { jEv: jEv });
8                 },
9                 _main_template: function() {
10                         var t = this._super();
11                         t.children.push(this._actionsBar_template());
12                         return t;
13                 },
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 })
18                         ]};
19                 }
20         });
21
22 })( this.app );