-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Scherz
committed
Jul 17, 2024
1 parent
20f7d3f
commit 9b92a54
Showing
7 changed files
with
60 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Specific to software_records.html.erb | ||
function clearFilters() { | ||
document.getElementById("vendor-record-filter").style.display = "none"; | ||
document.getElementById("software-type-filter").style.display = "none"; | ||
var loaded = window.location.host; | ||
window.location = "software_records"; | ||
} | ||
|
||
function handleRadio(myRadio) { | ||
if(myRadio.value === "vendor_records") { | ||
document.getElementById("vendor-record-filter").style.display = "block"; | ||
document.getElementById("software-type-filter").style.display = "none"; | ||
} else { | ||
document.getElementById("vendor-record-filter").style.display = "none"; | ||
document.getElementById("software-type-filter").style.display = "block"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var createdbyfield = document.getElementsByClassName('regex-createdby')[0]; | ||
createdbyfield.onkeyup = function() { | ||
createdbyfield.value = createdbyfield.value.replace(/[^a-zA-Z0-9 ]/, ''); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function openNav() { | ||
document.getElementById("mySidenav").style.visibility = "visible"; | ||
document.getElementById("mySidenav").style.width = "250px"; | ||
document.getElementById("main").style.marginLeft = "250px"; | ||
} | ||
|
||
function closeNav() { | ||
document.getElementById("mySidenav").style.visibility = "hidden"; | ||
document.getElementById("mySidenav").style.width = "0"; | ||
document.getElementById("main").style.marginLeft = "0"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters