_this.form.findField('onid').setValue((_this.showType == 'private') ? _this.data.onid : 0);
_this.form.doAction('submit');
-
- //_this.dialog.uploadProgress.defer(1000, _this.dialog);
});
_this.masonry.clearAll();
+ var params = {
+ ontable : 'core_email',
+ 'search[filename]' : _this.searchBox.getValue()
+ };
+
+ if(_this.showType == 'private'){
+ params.onid = _this.data.onid;
+ }
+
new Pman.Request({
url: baseURL + '/Roo/Images',
method: 'GET',
- params: {
- ontable : 'core_email',
- onid : (_this.showType == 'private') ? _this.data.onid : 0,
- 'search[filename]' : _this.searchBox.getValue()
- },
+ params: params,
success: function(ret) {
if(!ret.data.length){
_this.deleteBtn.hide();
+ _this.masonryBlock.el.removeClass(['col-md-12','col-md-8']).addClass('col-md-12');
+
if(!this.isSelected()){
return;
}
+ _this.masonryBlock.el.removeClass(['col-md-12','col-md-8']).addClass('col-md-8');
+
if(_this.masonry.getSelected().length == 1){
_this.deleteBtn.show();
}