@@ -7,10 +7,6 @@
<meta name="google" content="notranslate">
<meta http-equiv="Content-Language" content="en">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.11/css/all.css" integrity="sha384-p2jx59pefphTFIpeqCcISO9MdVfIm4pNnsL08A6v5vaQc4owkQqxMV8kg4Yvhaw/" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap-theme.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Lato|Lora" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
@@ -29,9 +25,6 @@
<script src="scripts/search.js"></script>
<script src="scripts/views.js"></script>
<script src="scripts/realClassifierFiltering.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

</head>
<body>
@@ -142,9 +135,37 @@ <h1> <a href="" id="src-home-link">src</a> </h1>
<div id="results-files"></div>
</div>
</div>

<!-- file upload display -->
</div>
<div id="upload">
<div class="form-label">File Name</div>
<input type="text" class="edit-field" id="file-name">
<div class="form-label">Author</div>
<input type="text" class="edit-field" id="file-author">
<div class="form-label">Publish Date</div>
<input type="text" class="edit-field" id="publish-date">
<div></div>
<div class="edit-grid">
<div class="form-label" id="tags-form-label">Tags</div>
<div class="form-label" id="projects-form-label">Projects</div>
<div class="form-label" id="groups-form-label">Groups</div>
<div id="form-tags">
<input type="text" class="form-classifier-input" id="tags-form-input" placeholder="Enter tags...">
<div class="classifier-form-box" id="tags-form-box"></div>
</div>
<div id="form-projects">
<input type="text" class="form-classifier-input" id="projects-form-input" placeholder="Enter projects...">
<div class="classifier-form-box" id="projects-form-box"></div>
</div>
<div id="form-groups">
<input type="text" class="form-classifier-input" id="groups-form-input" placeholder="Enter groups...">
<div class="classifier-form-box" id="groups-form-box"></div>
</div>
<div class="form-label" id="notes-form-label">Notes</div>
<textarea class="edit-field" id="file-notes" rows="4"></textarea>
</div>
<button type-"button" class="form-button" id="cancel-file"> Cancel </button>
<button type="button" class="form-button" id="save-file"> Save </button>
</div>
</div>

<!-- =========== PREVIEW UPLOAD COLUMN =========== -->

@@ -167,50 +188,6 @@ <h3 id="preview-filename"></h3>
</div>
</div>
</div>
<div class="modal fade" id="upload-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Upload File</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="form-label">File Name</div>
<input type="text" class="edit-field" id="file-name">
<div class="form-label">Author</div>
<input type="text" class="edit-field" id="file-author">
<div class="form-label">Publish Date</div>
<input type="text" class="edit-field" id="publish-date">
<div></div>
<div class="edit-grid">
<div class="form-label" id="tags-form-label">Tags</div>
<div class="form-label" id="projects-form-label">Projects</div>
<div class="form-label" id="groups-form-label">Groups</div>
<div id="form-tags">
<input type="text" class="form-classifier-input" id="tags-form-input" placeholder="Enter tags...">
<div class="classifier-form-box" id="tags-form-box"></div>
</div>
<div id="form-projects">
<input type="text" class="form-classifier-input" id="projects-form-input" placeholder="Enter projects...">
<div class="classifier-form-box" id="projects-form-box"></div>
</div>
<div id="form-groups">
<input type="text" class="form-classifier-input" id="groups-form-input" placeholder="Enter groups...">
<div class="classifier-form-box" id="groups-form-box"></div>
</div>
<div class="form-label" id="notes-form-label">Notes</div>
<textarea class="edit-field" id="file-notes" rows="4"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="save-file">Save changes</button>
</div>
</div>
</div>
</div>
</body>

</html>

This file was deleted.

This file was deleted.

@@ -41,6 +41,9 @@ function handleDragleave(e) {
}

function saveFile(e){
e.preventDefault();
e.stopPropagation();

var checkbox = document.createElement("img")
checkbox.setAttribute("src", "images/checkbox.png")
checkbox.setAttribute("class", "result-file-checkbox")
@@ -81,9 +84,8 @@ function saveFile(e){

parent.prepend(child);

$('#upload-modal').modal('hide');


dom.upload.style.display = "none";
dom.default.style.display = "block";
//
//
// var child = document.createElement("div")
@@ -143,5 +145,11 @@ function saveFile(e){
// mainFiles.add(child);
//
// parent.appendChild(child);
}
function cancelFile(e){
e.preventDefault();
e.stopPropagation();

dom.upload.style.display = "none";
dom.default.style.display = "block";
}
@@ -55,8 +55,11 @@ Util.events(document, {
document.body.addEventListener("dragleave", handleDragleave, false);
dom.fileUpload.addEventListener("drop", handleDrop, false);
dom.submit.addEventListener("click", function(event){saveFile(event);}, false);
dom.cancel.addEventListener("click", function(event){cancelFile(event);}, false);
dom.uploadButton.addEventListener("click", function(){
dom.uploadElt.click();
dom.upload.style.display = "block";
dom.default.style.display = "none";
});

// titlesToggle.js
@@ -104,6 +107,7 @@ function populateDom() {
dom.upload = Util.one("#upload");
dom.uploadButton = Util.one("#upload-button");
dom.submit = Util.one("#save-file");
dom.cancel = Util.one("#cancel-file");
dom.uploadElt = Util.one("#hidden-file-upload");

dom.starItemsButton = Util.one("#star-items");
@@ -8,11 +8,11 @@ function addSearchListeners() {
var parent;
var desiredFiles;


parent = Util.one("#results-files");
desiredFiles = dom.files;
if (cText.trim().length > 0) {

if (cText.trim().length > 0) {
filtered = getMatchingFiles(desiredFiles, cText);
} else {
filtered = desiredFiles;
@@ -31,7 +31,7 @@ function getMatchingFiles(files, text) {
}
}
return filtered;
})(files, text);
})(files, text);
f.join();
return f.reverse();
}
@@ -44,4 +44,4 @@ function addFilesToParent(parent, files) {
for(var i = 0; i < files.length; i++) {
parent.appendChild(files[i]);
}
}
}