mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-31 04:49:05 +01:00
move filemanager to utils package
This commit is contained in:
parent
442dd1101b
commit
90535c6d4f
2 changed files with 8 additions and 8 deletions
|
|
@ -8,11 +8,11 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="css/toolkit.css?modeler">
|
||||
<link rel="stylesheet" href="lib/font-awesome/css/font-awesome.min.css?modeler">
|
||||
<script src="app/filemanager.js"></script>
|
||||
<link rel="stylesheet" href="../css/toolkit.css?modeler">
|
||||
<link rel="stylesheet" href="../lib/font-awesome/css/font-awesome.min.css?modeler">
|
||||
<script src="filemanager.js"></script>
|
||||
|
||||
<script src="lib/jquery-2.1.0.min.js"></script>
|
||||
<script src="../lib/jquery-2.1.0.min.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
|
|
@ -60,11 +60,11 @@ function openSelectedItem()
|
|||
filetoopen.replace("TCAD.projects.", "");
|
||||
if (filetoopen.search("sketch") < 0)
|
||||
{
|
||||
window.location.href = "./index.html#" + filetoopen.replace("TCAD.projects.", "");
|
||||
window.location.href = "/index.html?" + filetoopen.replace("TCAD.projects.", "");
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location.href = "./sketcher.html#" + filetoopen.replace("TCAD.projects.", "");
|
||||
window.location.href = "/sketcher.html#" + filetoopen.replace("TCAD.projects.", "");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ function readSingleFile(e) {
|
|||
var arrayOfLines = data.split("\n");
|
||||
alert(arrayOfLines[0]);
|
||||
|
||||
for (i = 0; i < arrayOfLines[0]; i++)
|
||||
for (var i = 0; i < arrayOfLines[0]; i++)
|
||||
{
|
||||
localStorage.setItem(arrayOfLines[i*2+1],arrayOfLines[i*2+2]);
|
||||
}
|
||||
|
|
@ -120,4 +120,4 @@ function exportTextData(data, fileName)
|
|||
link.download = fileName;
|
||||
link.click();
|
||||
//console.log(app.viewer.io.svgExport());
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue