Commit ce626a0acc1f5d149f4b13a9858240de65d3075a
Exists in
master
and in
99 other branches
Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM
Showing
5 changed files
with
19 additions
and
14 deletions
Show diff stats
js/app/AmdaApp.js
... | ... | @@ -578,7 +578,7 @@ Ext.define('amdaApp.AmdaApp', { |
578 | 578 | } |
579 | 579 | }); |
580 | 580 | Ext.state.Manager.getProvider().saveState(); |
581 | - AmdaAction.logout(); | |
581 | + AmdaAction.logout(false); | |
582 | 582 | } |
583 | 583 | else if (btn == 'no') |
584 | 584 | { |
... | ... | @@ -591,7 +591,7 @@ Ext.define('amdaApp.AmdaApp', { |
591 | 591 | }); |
592 | 592 | Ext.state.Manager.getProvider().set(me.desktop.id+'_wallpaper',me.desktop.getWallpaper()); |
593 | 593 | Ext.state.Manager.getProvider().saveLastTime(); |
594 | - AmdaAction.logout(); | |
594 | + AmdaAction.logout(false); | |
595 | 595 | } |
596 | 596 | } |
597 | 597 | }); |
... | ... |
js/app/views/ParameterUI.js
... | ... | @@ -448,6 +448,7 @@ Ext.define('amdaUI.ParameterUI', |
448 | 448 | allowBlank : false, blankText : 'Time Step is required', |
449 | 449 | name : 'timestep', |
450 | 450 | minValue : 0.001, |
451 | + decimalPrecision : 3, | |
451 | 452 | hideTrigger: true, |
452 | 453 | width: 150, |
453 | 454 | //validateOnChange: false, |
... | ... |
php/RemoteDataCenter/ImpexParamManager.php
... | ... | @@ -342,8 +342,8 @@ class ImpexParamManager |
342 | 342 | |
343 | 343 | $res["param"]["info"]["realVar"] = $this->parameterKey; |
344 | 344 | $res["param"]["info"]["type"] = $varInfo['type']; |
345 | - $res["param"]["info"]["minSampling"] = $varSampling[4]; | |
346 | - $res["param"]["info"]["maxSampling"] = $varSampling[4]; | |
345 | + $res["param"]["info"]["minSampling"] = $varSampling[2]; | |
346 | + $res["param"]["info"]["maxSampling"] = $varSampling[2]; | |
347 | 347 | $res["param"]["info"]["plotType"] = "Spectro"; |
348 | 348 | $res["param"]["info"]["size"] = $varInfo['size']; |
349 | 349 | } |
... | ... | @@ -427,7 +427,12 @@ class ImpexParamManager |
427 | 427 | { |
428 | 428 | $params = array(); |
429 | 429 | |
430 | - if ($templateArgs && !empty((array) $templateArgs)) | |
430 | + if ($templateArgs) { | |
431 | + $templateArr = (array)$templateArgs; | |
432 | + $notEmptyTemplateArgs = !empty($templateArr); | |
433 | + } | |
434 | + | |
435 | + if ($templateArgs && $notEmptyTemplateArgs) | |
431 | 436 | { |
432 | 437 | $extraParams = array(); |
433 | 438 | |
... | ... | @@ -449,17 +454,16 @@ class ImpexParamManager |
449 | 454 | if ($key == "Sampling") $params[$key] = 60; |
450 | 455 | } |
451 | 456 | } |
452 | - | |
457 | + | |
453 | 458 | if ($url_XYZ) |
454 | 459 | { |
455 | 460 | $params['url_XYZ'] = $url_XYZ; |
456 | 461 | } |
457 | - | |
462 | + | |
458 | 463 | $params['extraParams'] = $extraParams; |
459 | 464 | } |
460 | 465 | else |
461 | 466 | { |
462 | - | |
463 | 467 | $params['accessUrl'] = $this->impexParamInfo->getAccessUrl($this->resourceID); |
464 | 468 | } |
465 | 469 | |
... | ... |
php/classes/FilesMgr.php
... | ... | @@ -120,12 +120,12 @@ class FilesMgr extends AmdaObjectMgr |
120 | 120 | return array('type' => $data_type, 'size' => $size, 'n_records' => $n_recs, 'units' => $units, 'fillvalue' => $fillval); |
121 | 121 | } |
122 | 122 | |
123 | - public function getCdfSampling() { | |
123 | + public function getCdfSampling() { | |
124 | 124 | exec('cdfsamplingfromdata '.$this->fileName, $results); |
125 | 125 | return $results; |
126 | 126 | } |
127 | 127 | |
128 | - public function getCdfSamplings() { | |
128 | + public function getCdfSamplings() { | |
129 | 129 | exec('cdfsamplingsfromdata '.$this->fileName, $results); |
130 | 130 | return $results; |
131 | 131 | } |
... | ... |
php/uploadFile.php
... | ... | @@ -48,7 +48,6 @@ |
48 | 48 | if (preg_match('/Content-Length: (\d+)/', $data, $matches)) { |
49 | 49 | $ContentLength = (int)$matches[1]; |
50 | 50 | } |
51 | - | |
52 | 51 | return $ContentLength; |
53 | 52 | } |
54 | 53 | |
... | ... | @@ -189,12 +188,13 @@ |
189 | 188 | |
190 | 189 | $url = null; |
191 | 190 | |
192 | - if (substr($remoteName,0,5) == 'https') | |
191 | + /*if (substr($remoteName,0,5) == 'https') | |
193 | 192 | { |
194 | 193 | $response = array( 'success' => false, 'error' => ' : Sorry, https protocol is no implemented yet'); |
195 | 194 | die(json_encode($response)); |
196 | - } | |
197 | - | |
195 | + }*/ | |
196 | + | |
197 | + if (substr($remoteName,0,5) == 'https') $url = 'https'; | |
198 | 198 | if (substr($remoteName,0,4) == 'http') $url = 'http'; |
199 | 199 | if (substr($remoteName,0,3) == 'ftp') $url = 'ftp'; |
200 | 200 | |
... | ... |