Fix #5650 - fix images thumbnails and adding in CMS
[Pman.Cms] / Pman.Dialog.CmsBlog.js
index af743ce..f0d5adf 100644 (file)
@@ -2118,7 +2118,7 @@ Pman.Dialog.CmsBlog = {
                    qtip : _this._strings['2f26e35d61be90501e099089dc533638'] /* Select Images */,
                    queryParam : 'search',
                    selectOnFocus : true,
-                   tpl : '<div class="x-grid-cell-text x-btn button"><img src="' + baseURL + '/Images/Thumb/150x150/{id}.jpg" height="150" width="150"><b>{filename}</b> </div>',
+                   tpl : '<div class=\"x-grid-cell-text x-btn button\"><img src=\"' + baseURL + '/Images/Thumb/150x150/{id}.jpg\" height=\"150\" width=\"150\"><br/><b>{filename}</b> </div>',
                    triggerAction : 'all',
                    typeAhead : true,
                    valueField : 'id',
@@ -2144,7 +2144,7 @@ Pman.Dialog.CmsBlog = {
                              combo.setValue('');
                          }).defer(100);
                          
-                         var editor = _this.form.findField('body').editorcore;
+                         var editor = _this.form1.findField('body').editorcore;
                          
                          var curnode = editor.getSelectedNode();
                          
@@ -2184,7 +2184,7 @@ Pman.Dialog.CmsBlog = {
                           o.params.onid = id;
                           o.params.ontable = 'cms_page';
                          // o.params.imgtype = 'PressRelease';
-                          //o.params['query[imagesize]'] = '150x150';
+                          o.params['query[imagesize]'] = '150x150';
                           // set more here
                       }
                     },
@@ -2457,7 +2457,7 @@ Pman.Dialog.CmsBlog = {
                    pageSize : 20,
                    qtip : _this._strings['2f26e35d61be90501e099089dc533638'] /* Select Images */,
                    selectOnFocus : true,
-                   tpl : '<div class=\"x-grid-cell-text x-btn button\"><img src=\"{url_thumb}\" height=\"150\" width=\"150\"><b>{filename}</b> </div>',
+                   tpl : '<div class=\"x-grid-cell-text x-btn button\"><img src=\"' + baseURL + '/Images/Thumb/150x150/{id}.jpg\" height=\"150\" width=\"150\"><br/><b>{filename}</b> </div>',
                    triggerAction : 'all',
                    typeAhead : true,
                    valueField : 'id',
@@ -2483,7 +2483,7 @@ Pman.Dialog.CmsBlog = {
                              combo.setValue('');
                          }).defer(100);
                          
-                         var editor = _this.form.findField('extended').editorcore;
+                         var editor = _this.form2.findField('extended').editorcore;
                          
                          var curnode = editor.getSelectedNode();
                          
@@ -2523,7 +2523,7 @@ Pman.Dialog.CmsBlog = {
                           o.params.onid = id;
                           o.params.ontable = 'cms_page';
                          // o.params.imgtype = 'PressRelease';
-                          //o.params['query[imagesize]'] = '150x150';
+                           o.params['query[imagesize]'] = '150x150';
                           // set more here
                       }
                     },