Commit 4c9f25077fa401f5c7c70bc4245568ca6d2a1110

Authored by Myriam Bouchemit
2 parents a37ffa44 ce626a0a

Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM

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,
... ...
js/app/views/StatisticsUI.js
... ... @@ -230,7 +230,7 @@ Ext.define('amdaUI.StatisticsUI',
230 230 {
231 231 xtype: 'combo', queryMode : 'local',
232 232 //emptyText : 'please click to select function',
233   - store: [ 'min', 'max', 'mean' ],
  233 + store: [ 'min', 'max', 'mean' ,'median','variance','skewness','kurtosis','count','countNotNan' ],
234 234 triggerAction: 'all',
235 235 //lazyInit: false,
236 236 listeners: {
... ...
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  
... ...