2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
8 Roo.example = Roo.example || {};
10 Roo.example.modal= function() {}
11 Roo.apply(Roo.example.modal, {
15 show : function(data, cb)
23 this.dialog.show(this.data._el);
26 this.form.setValues(data);
27 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
37 this.dialog = Roo.factory({
41 buttons : Roo.bootstrap.Modal.OKCANCEL,
43 btnclick : function (name, e) {
45 _this.loginModal.hide();
50 render : function (_self) {
51 _this.loginModal = _self;
60 style : 'margin-top:20px',
66 actioncomplete : function (_self, action) {
67 if (action.type =='submit') {
68 _this.loginModal.hide();
83 fieldLabel : 'Password',
84 inputType : 'password'