Commit 76d60878ccc8f2d45abf1f8bbccb6ccbc03ca6cf
1 parent
3b95ce6e
Exists in
master
and in
112 other branches
Add compatibility with old versions of FF
Showing
2 changed files
with
12 additions
and
6 deletions
Show diff stats
js/app/controllers/EpnTapModule.js
js/app/views/EpnTapUI.js
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | * 24/10/2016: file creation |
8 | 8 | */ |
9 | 9 | |
10 | +'use strict' | |
10 | 11 | Ext.require(['Ext.grid.plugin.BufferedRenderer']) |
11 | 12 | /** |
12 | 13 | `productTypesStore`: An ExtJS Store containing the list of the different data product types defined on all granules, on |
... | ... | @@ -213,7 +214,8 @@ Ext.define('App.util.Format', { |
213 | 214 | return data.charAt(0).toUpperCase() + data.replace(/_/g, ' ').substr(1).toLowerCase() |
214 | 215 | }, |
215 | 216 | 'sanitizeData': function (data) { |
216 | - for (let dKey in data) { | |
217 | + // noinspection ES6ConvertVarToLetConst | |
218 | + for (var dKey in data) { | |
217 | 219 | if (data.hasOwnProperty(dKey) && typeof data[dKey] === 'string' && data[dKey] !== '') { |
218 | 220 | data[dKey] = data[dKey].replace(/'/g, ''').replace(/"/g, '"') |
219 | 221 | } |
... | ... | @@ -243,8 +245,10 @@ Ext.define('App.util.Format', { |
243 | 245 | const info = sData.info.length > 0 ? '<p style="color:' + infoColor + '">' + sData.info + '</p>' : '' |
244 | 246 | |
245 | 247 | const colums = ['res_title', 'ivoid', 'access_url', 'table_name', 'content_type', 'creator_seq', 'content_level', 'reference_url', 'created', 'updated'] |
246 | - let details = '' | |
247 | - for (let cKey in colums) { | |
248 | + // noinspection ES6ConvertVarToLetConst | |
249 | + var details = '' | |
250 | + // noinspection ES6ConvertVarToLetConst | |
251 | + for (var cKey in colums) { | |
248 | 252 | if (colums.hasOwnProperty(cKey) && sData[colums[cKey]] !== '') { |
249 | 253 | const val = colums[cKey] === 'content_level' ? sData[colums[cKey]].replace(/#/g, ', ') : sData[colums[cKey]] |
250 | 254 | details += '<li><b>' + Ext.util.Format.prettify(colums[cKey]) + '</b>: ' + val + '</li>' |
... | ... | @@ -306,7 +310,8 @@ Ext.define('App.util.Format', { |
306 | 310 | // See https://en.wikipedia.org/wiki/Julian_day#Julian_or_Gregorian_calendar_from_Julian_day_number |
307 | 311 | // noinspection MagicNumberJS |
308 | 312 | const jd = {y: 4716, j: 1401, m: 2, n: 12, r: 4, p: 1461, v: 3, u: 5, s: 153, w: 2} |
309 | - let strDate | |
313 | + // noinspection ES6ConvertVarToLetConst | |
314 | + var strDate | |
310 | 315 | if (isNaN(data)) { |
311 | 316 | strDate = false |
312 | 317 | } else { |
... | ... | @@ -391,7 +396,7 @@ Ext.define('amdaUI.EpnTapUI', { |
391 | 396 | */ |
392 | 397 | constructor: function (config) { |
393 | 398 | this.init(config) |
394 | - this.callParent(arguments) | |
399 | + this.superclass.constructor.apply(this, arguments) | |
395 | 400 | }, |
396 | 401 | |
397 | 402 | /** |
... | ... | @@ -403,7 +408,7 @@ Ext.define('amdaUI.EpnTapUI', { |
403 | 408 | them private (ie. to avoid `EpnTapUI.createServicesGrid();`, which doesn't make sense). |
404 | 409 | */ |
405 | 410 | init: function (config) { |
406 | - let myConf = { | |
411 | + const myConf = { | |
407 | 412 | id: 'epntapTab', |
408 | 413 | title: 'EPN-TAP', |
409 | 414 | items: [{ |
... | ... |