Skip to content

Commit 38a909d

Browse files
author
Olivier Giulieri
committed
Added border around images in List and Badges views.
1 parent 4f571b6 commit 38a909d

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

dist/evolutility.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ Evol.UI = {
172172
return h.join('');
173173
},
174174

175-
img: function (id, value) {
176-
return ['<img id="', id, '" src="', value.replace(/"/g,'\"'), '">'].join('');
175+
img: function (id, value, css) {
176+
return ['<img id="', id, '" src="', value.replace(/"/g,'\"'), css?'" class="'+css:'', '">'].join('');
177177
},
178178

179179
hidden: function (id, value) {
@@ -4253,7 +4253,7 @@ Evol.Dico = {
42534253
return Evol.UI.formatDateTime(v);
42544254
case fTypes.pix:
42554255
if (v && v.length) {
4256-
return Evol.UI.input.img(f.id, iconsPath + v);
4256+
return Evol.UI.input.img(f.id, iconsPath + v, 'img-thumbnail');
42574257
}
42584258
break;
42594259
case fTypes.money:
@@ -4920,7 +4920,15 @@ Evol.ViewToolbar = Backbone.View.extend({
49204920
return this;
49214921
}
49224922
}else{
4923-
this._filters.$el.show();
4923+
this._filters.$el.slideDown();
4924+
}
4925+
return this;
4926+
},
4927+
4928+
hideFilter: function(){
4929+
if(this._filters){
4930+
this._filters.$el.fadeOut(300);
4931+
this._filterOn=false;
49244932
}
49254933
return this;
49264934
},
@@ -4936,14 +4944,6 @@ Evol.ViewToolbar = Backbone.View.extend({
49364944
}
49374945
},
49384946

4939-
hideFilter: function(){
4940-
if(this._filters){
4941-
this._filters.$el.hide();
4942-
this._filterOn=false;
4943-
}
4944-
return this;
4945-
},
4946-
49474947
toggleFilter: function(){
49484948
this._filtersOn=!this._filtersOn;
49494949
return this._filtersOn?this.showFilter(true):this.hideFilter();

dist/evolutility.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/dico.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Evol.Dico = {
333333
return Evol.UI.formatDateTime(v);
334334
case fTypes.pix:
335335
if (v && v.length) {
336-
return Evol.UI.input.img(f.id, iconsPath + v);
336+
return Evol.UI.input.img(f.id, iconsPath + v, 'img-thumbnail');
337337
}
338338
break;
339339
case fTypes.money:

js/ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ Evol.UI = {
169169
return h.join('');
170170
},
171171

172-
img: function (id, value) {
173-
return ['<img id="', id, '" src="', value.replace(/"/g,'\"'), '">'].join('');
172+
img: function (id, value, css) {
173+
return ['<img id="', id, '" src="', value.replace(/"/g,'\"'), css?'" class="'+css:'', '">'].join('');
174174
},
175175

176176
hidden: function (id, value) {

0 commit comments

Comments
 (0)