items : [
{
xtype : 'Column',
- sm : 8,
+ md : 12,
+ listeners : {
+ render : function (_self)
+ {
+ _this.masonryBlock = this;
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
_this.form.findField('onid').setValue((_this.showType == 'private') ? _this.data.onid : 0);
_this.form.doAction('submit');
-
- //_this.dialog.uploadProgress.defer(1000, _this.dialog);
});
{
xtype : 'Button',
html : _this._strings['53ab4599d0106e32d015649175a70d7b'] /* <i class="fa fa-filter"></i> Filter */,
- style : 'float:left;',
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
menu : {
{
xtype : 'Input',
placeholder : _this._strings['37c1097cf82226d511586ecd99ed97cf'] /* search for image */,
- style : 'float:left; width: 200px; margin-left: 15px;',
+ style : 'width: 200px; margin-left: 15px;display: inline-block; margin-bottom: 0px; vertical-align: middle;',
listeners : {
render : function (_self)
{
_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();
}
},
{
xtype : 'Column',
- sm : 4,
+ md : 4,
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [