Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vc-roomunlock-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hartig
vc-roomunlock-web
Commits
cf4f11b8
Commit
cf4f11b8
authored
1 year ago
by
Jan Hartig
Browse files
Options
Downloads
Patches
Plain Diff
Fix validation on url call
parent
d3a49008
No related branches found
No related tags found
1 merge request
!1
Add error handling
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roomunlock.html
+4
-4
4 additions, 4 deletions
roomunlock.html
with
4 additions
and
4 deletions
roomunlock.html
+
4
−
4
View file @
cf4f11b8
...
...
@@ -73,7 +73,7 @@
<div
id=
"hiddenFieldError"
class=
"hiddenField error"
aria-hidden=
"true"
>
<p
id=
"errorText"
>
empty
</p>
</div>
<input
type=
"text"
id=
"room"
placeholder=
"Raumname"
minlength=
"2"
required
>
<input
type=
"text"
id=
"room"
placeholder=
"Raumname"
minlength=
2
required
>
<button
type=
"button"
onclick=
"process_form()"
id=
"unlock"
>
Freischalten
</button>
<br>
<p
style=
"font-weight: bold;"
>
oder...
</p>
...
...
@@ -99,9 +99,9 @@
const
roomUrl
=
document
.
getElementById
(
'
roomUrl
'
);
let
room
=
window
.
location
.
href
.
substring
(
window
.
location
.
href
.
lastIndexOf
(
'
/
'
)
+
1
)
if
(
room
!==
"
raumfreischaltung
"
&&
room
!==
""
)
{
roomField
.
value
=
room
;
unlockButton
.
click
();
if
(
room
.
length
>=
2
&&
room
!==
"
raumfreischaltung
"
)
{
roomField
.
value
=
room
get_room
(
room
)
}
function
get_room
(
_room
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment