X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreEnum.js;h=aed333cb4e140583c252d4860edfad293613ead2;hp=273763aba5b58f579c06a8e44023496423b950ee;hb=HEAD;hpb=1253749931e3419b8001fcec732f482dc2b6e60b diff --git a/Pman.Dialog.CoreEnum.js b/Pman.Dialog.CoreEnum.js index 273763ab..aed333cb 100644 --- a/Pman.Dialog.CoreEnum.js +++ b/Pman.Dialog.CoreEnum.js @@ -35,7 +35,7 @@ Pman.Dialog.CoreEnum = { 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); @@ -91,7 +91,7 @@ Pman.Dialog.CoreEnum = { click : function() { var name = _this.form.findField('name').getValue(); - name = name.toUpperCase().replace(/[^A-Z]+/g, ''); + name = name.toUpperCase().replace(/[^A-Z0-9]+/g, ''); if (!name.length) { Roo.MessageBox.alert("Error","Please fill in a valid name"); return;