fix #8131 - chinese translations
[Pman.Core] / Pman.Dialog.Image.js
index 50a667b..e6d58ed 100644 (file)
@@ -37,7 +37,7 @@ Pman.Dialog.Image = {
 
   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);
@@ -319,6 +319,7 @@ Pman.Dialog.Image = {
          },
          {
           xtype : 'TextField',
+          allowBlank : false,
           fieldLabel : _this._strings['ea72bacd2fdfa818907bb9559e6905a1'] /* Upload Image or File */,
           inputType : 'file',
           name : 'imageUpload',