Commit 97ef04b475a351812e771329c73dcb4262ff73e7
1 parent
fc97c851
Exists in
master
and in
112 other branches
granules grid: set alt text on link icon + minor refactoring
Showing
3 changed files
with
2 additions
and
5 deletions
Show diff stats
js/app/controllers/EpnTapModule.js
... | ... | @@ -170,7 +170,6 @@ Ext.define('amdaDesktop.EpnTapModule', { |
170 | 170 | if(record.get('nb_results') > 0) { |
171 | 171 | this.granulesStore.removeAll(); |
172 | 172 | this.granulesStore.load({ |
173 | - params: {'action': 'getGranules'}, | |
174 | 173 | callback: function (records, operation, success) { |
175 | 174 | Ext.Ajax.resumeEvents('requestexception'); |
176 | 175 | // console.log(Ext.decode(operation.response.responseText)); |
... | ... |
js/app/views/EpnTapUI.js
... | ... | @@ -263,7 +263,7 @@ Ext.define('App.util.Format', { |
263 | 263 | }, |
264 | 264 | 'granule.link': function(data, metadata, record) { |
265 | 265 | var icon_b64 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgaGVpZ2h0PSIxMDI0IiB3aWR0aD0iNzY4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik02NDAgNzY4SDEyOFYyNTcuOTA1OTk5OTk5OTk5OTVMMjU2IDI1NlYxMjhIMHY3NjhoNzY4VjU3Nkg2NDBWNzY4ek0zODQgMTI4bDEyOCAxMjhMMzIwIDQ0OGwxMjggMTI4IDE5Mi0xOTIgMTI4IDEyOFYxMjhIMzg0eiIvPjwvc3ZnPg=='; |
266 | - var icon = '<img width="15px height="15px" src="' + icon_b64 + '">'; | |
266 | + var icon = '<img style="width:15px;" alt="link" src="' + icon_b64 + '">'; | |
267 | 267 | url = Ext.util.Format.url(data); |
268 | 268 | if(url) { |
269 | 269 | txt = '<a style="font-size:150%" target="_blank" href="' + url + '">' + icon + '</a>'; |
... | ... | @@ -274,7 +274,7 @@ Ext.define('App.util.Format', { |
274 | 274 | img_url = Ext.util.Format.url(data); |
275 | 275 | if(img_url) { |
276 | 276 | icon = '<img style="max-width:100%; max-height:100%" alt="-" src="' + img_url + '">'; |
277 | - img = '<img style="max-width:200px; max-height:200px" alt="-" src="' + img_url + '">'; | |
277 | + img = '<img style="max-width:200px; max-height:200px" src="' + img_url + '">'; | |
278 | 278 | } |
279 | 279 | return Ext.util.Format.cell(icon, img); |
280 | 280 | }, |
... | ... |