Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
filter on groups for visible calendars.
Browse files Browse the repository at this point in the history
  • Loading branch information
denshade committed Feb 12, 2020
1 parent 919f43a commit efc27ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Web cal",
"namespace": "uzgent\\WebCalClass",
"framework-version": 3,
"description": "This module allows you to share calendar records.",
"authors": [
{
Expand Down Expand Up @@ -32,10 +33,10 @@
"links": {
"project": [
{
"name": "Share agenda",
"icon": "fas fa-receipt",
"url": "createLink.php",
"show-header-and-footer": true
"name" : "Share agenda",
"icon" : "far fa-calendar-alt",
"url" : "createLink.php",
"show-header-and-footer" : true
}
]
}
Expand Down
10 changes: 5 additions & 5 deletions createLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function printShowPublicURL($url, $dagRecord)
<div class="card text-white bg-info mb-3">
<div class="card-header">
<?php

$groupId = $dagRecord["group_id"];
if ($dagRecord === null)
{
echo "Public URL ";
Expand All @@ -31,10 +31,10 @@ function printShowPublicURL($url, $dagRecord)

</div>
<div class="card-body">
<input class="form-control" type="text" id="myInput" value="<?php echo $url; ?>">
<input class="form-control" type="text" id="myInput<?php echo $groupId;?>" value="<?php echo $url; ?>">

<!-- The button used to copy the text -->
<button class="form-control" onclick="myFunction()">Copy to Clipboard</button>
<button class="form-control" onclick="myFunction('myInput<?php echo $groupId;?>')">Copy to Clipboard</button>
</div>
</div>
<?php
Expand Down Expand Up @@ -78,9 +78,9 @@ function printShowPublicURL($url, $dagRecord)


<script>
function myFunction() {
function myFunction(idName) {
/* Get the text field */
var copyText = document.getElementById("myInput");
var copyText = document.getElementById(idName);

/* Select the text field */
copyText.select();
Expand Down

0 comments on commit efc27ab

Please sign in to comment.