1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Dialog');
12 show : function(data, cb)
20 this.dialog.show(this.data._el);
23 this.form.setValues(data);
24 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
32 this.dialog = Roo.factory({
33 '|xns' : 'Roo.bootstrap',
36 buttonPosition : 'center',
37 buttons : Roo.bootstrap.Modal.OKCANCEL,
40 btnclick : function (e)
47 _this.form.doAction('submit');
49 render : function (_self) {
51 Roo.get('login-err').dom.innerHTML = "";
54 show : function (_self)
56 Roo.get('login-err').dom.innerHTML = "";
61 '|xns' : 'Roo.bootstrap',
64 style : 'margin-top:20px;',
67 '|xns' : 'Roo.bootstrap',
73 '|xns' : 'Roo.bootstrap',
74 url : baseURL + '/Login',
80 render : function (_self) {
83 actionfailed : function (_self, action) {
84 Roo.log('action failed?!');
87 if (typeof(action) != 'undefined' && action.failureType == 'server') {
89 Roo.get('login-err').dom.innerHTML = action.result.errorMsg;
93 Roo.get('login-err').dom.innerHTML = "Fill in all the required fields";
95 actioncomplete : function (_self, action) {
97 if (action.type =='submit') {
101 if (_this.callback) {
102 _this.callback.call(_this, action.result);
113 '|xns' : 'Roo.bootstrap',
119 '|xns' : 'Roo.bootstrap',
123 placeholder : 'Email Address',
128 specialkey : function (_self, e)
130 if(e.getKey() == 13){
131 _this.form.doAction('submit');
138 '|xns' : 'Roo.bootstrap',
139 inputType : 'password',
141 placeholder : 'Password',
146 specialkey : function (_self, e)
148 if(e.getKey() == 13){
149 _this.form.doAction('submit');
167 '|xns' : 'Roo.bootstrap',
170 style : 'margin-top:20px;',
173 '|xns' : 'Roo.bootstrap',
179 '|xns' : 'Roo.bootstrap',
182 html : 'Forgot password?',
188 click : function () {
191 Hydra.Dialog.ForgotPassword.show({}, function(){
192 Roo.bootstrap.MessageBox.alert('Notice', 'The password has been sent to your email');
204 '|xns' : 'Roo.bootstrap',
209 '|xns' : 'Roo.bootstrap',
215 '|xns' : 'Roo.bootstrap',
217 style : 'margin-top:20px;',
219 html : '<div id=\"login-err\" class=\"dialog-err\" style=\"color:red\"></div>',