projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debug
[Pman.Core]
/
Pman.Dialog.CoreEnum.js
diff --git
a/Pman.Dialog.CoreEnum.js
b/Pman.Dialog.CoreEnum.js
index
44bd69b
..
aed333c
100644
(file)
--- a/
Pman.Dialog.CoreEnum.js
+++ b/
Pman.Dialog.CoreEnum.js
@@
-35,7
+35,7
@@
Pman.Dialog.CoreEnum = {
this.callback = cb;
this.data = data;
this.callback = cb;
this.data = data;
- this.dialog.show
(this.data._el
);
+ this.dialog.show
.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2)
);
if (this.form) {
this.form.reset();
this.form.setValues(data);
if (this.form) {
this.form.reset();
this.form.setValues(data);
@@
-91,7
+91,7
@@
Pman.Dialog.CoreEnum = {
click : function() {
var name = _this.form.findField('name').getValue();
click : function() {
var name = _this.form.findField('name').getValue();
- name = name.toUpperCase().replace(/[^A-Z]+/g, '');
+ name = name.toUpperCase().replace(/[^A-Z
0-9
]+/g, '');
if (!name.length) {
Roo.MessageBox.alert("Error","Please fill in a valid name");
return;
if (!name.length) {
Roo.MessageBox.alert("Error","Please fill in a valid name");
return;
@@
-180,7
+180,7
@@
Pman.Dialog.CoreEnum = {
allowBlank : false,
fieldLabel : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
name : 'display_name',
allowBlank : false,
fieldLabel : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
name : 'display_name',
- width : 2
0
0,
+ width : 2
5
0,
listeners : {
keyup : function (_self, e)
{
listeners : {
keyup : function (_self, e)
{