Skip to content

Commit

Permalink
fix add file
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihengSun committed Jan 17, 2020
1 parent f3e05fd commit 1eb707b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions WebContent/covali/js/edu.gmu.csiss.covali.filebrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ edu.gmu.csiss.covali.filebrowser = {

var dialogName = 'edu.gmu.csiss.covali.filebrowser.jsframe.LocalFiles';
var dialogTitle = 'Local Files';
$content = $("<div class=\"modal-body\"><dl class=\"row\" style=\"font-size: 12px; padding: 5px; margin:0px\">"+
var content = "<div class=\"modal-body\"><dl class=\"row\" style=\"font-size: 12px; padding: 5px; margin:0px\">"+
'<div id="filebrowser"></div>'+

"<div class=\"modal-footer\">" +
"<p><span class=\"btn btn-primary\" onclick=\'edu.gmu.csiss.covali.menu.closeDialog(\""+dialogName+"\")\'>Cancel</span></p>"+
"</div>");
"</div>";

edu.gmu.csiss.covali.menu.createDialog(dialogName, dialogTitle, $content);
edu.gmu.csiss.covali.menu.createDialog(dialogName, dialogTitle, content);
edu.gmu.csiss.covali.filebrowser.loadPath('');

// BootstrapDialog.show({
Expand Down
7 changes: 3 additions & 4 deletions WebContent/covali/js/edu.gmu.csiss.covali.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,15 @@ edu.gmu.csiss.covali.local = {

var dialogName = 'edu.gmu.csiss.covali.local.jsframe.PublicFolder';
var dialogTitle = 'Add data from server public folder';
$content = $("<div class=\"modal-body\"><dl class=\"row\" style=\"font-size: 12px; padding: 5px; margin:0px\">"+
var content = "<div class=\"modal-body\"><dl class=\"row\" style=\"font-size: 12px; padding: 5px; margin:0px\">"+
"<p class=\"text-success\">The file is parsed. Do you want to load it into the map now?</p>" +
"<p class=\"text-warning\">Warning: For netCDF format, only files compliant to CF convention are supported.</p>"+

"<div class=\"modal-footer\">" +
"<p><span class=\"btn btn-primary\" onclick=\'edu.gmu.csiss.covali.wms.showLayerSelector(\""+obj.id+"\");\'>Load</span>"+
"<span class=\"btn btn-primary\" onclick=\'edu.gmu.csiss.covali.menu.closeDialog(\""+dialogName+"\")\'>Close</span></p>"+
"</div>");
"</div>";

edu.gmu.csiss.covali.menu.createDialog(dialogName, dialogTitle, $content);
edu.gmu.csiss.covali.menu.createDialog(dialogName, dialogTitle, content);

// BootstrapDialog.show({
//
Expand Down
4 changes: 2 additions & 2 deletions src/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ enable_whitelist=false
#covali_data_path=/media/volume1/cc_cache/
#covali_file_path=/Users/juozas/Code/EC/cc/target/CyberConnector/uploadFile
#covali_file_path=C:/GMU EO Web GIS/Files
#covali_file_path=D:/work/TESTDATA/earthcube
covali_file_path=/Users/jensensun/Documents/data
covali_file_path=D:/work/TESTDATA/earthcube
#covali_file_path=/Users/jensensun/Documents/data

geoweaver_file_path=D:/data/geoweaver/

Expand Down

0 comments on commit 1eb707b

Please sign in to comment.