Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_WDN_Assessment
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Digital Experience Group
UNL_WDN_Assessment
Commits
40f4b4f9
Commit
40f4b4f9
authored
15 years ago
by
Seth Meranda
Browse files
Options
Downloads
Patches
Plain Diff
scroll to the first invalid page when scan of invalids begins
parent
02b6fd87
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
www/index.php
+2
-2
2 additions, 2 deletions
www/index.php
www/js/batchval.js
+10
-2
10 additions, 2 deletions
www/js/batchval.js
with
12 additions
and
4 deletions
www/index.php
+
2
−
2
View file @
40f4b4f9
...
...
@@ -122,14 +122,14 @@ if (isset($_GET['uri'])
</fieldset>
<p
class=
"submit"
><input
type=
"submit"
id=
"submit"
name=
"submit"
value=
"Submit"
/></p>
</form>
<h3
id=
"summaryTitle"
class=
"sec_header"
>
Summary of Scan
<span>
Revalidate:
<a
href=
"#"
>
Invalid Pages
</a>
|
<a
href=
"#
"
>
All Pages
</a></span></h3>
<h3
id=
"summaryTitle"
class=
"sec_header"
>
Summary of Scan
<span>
Revalidate:
<a
href=
"#"
id=
"validateInvalid"
onclick=
"validateInvalid(); return false"
>
Invalid Pages
</a>
|
<a
href=
"#"
id=
"validateAll"
onclick=
"validateAll(); return false
"
>
All Pages
</a></span></h3>
<div
class=
"clear"
>
<?php
if
(
!
empty
(
$uri
))
{
$parts
=
parse_url
(
$uri
);
if
(
!
isset
(
$parts
[
'path'
]))
{
echo
'<h2>tsk tsk. A trailing slash is always required. Didn\'t
your mother
ever teach you what a web address is?</h2>'
;
echo
'<h2>tsk tsk. A trailing slash is always required. Didn\'t
saltybeagle
ever teach you what a web address is?</h2>'
;
unset
(
$uri
);
}
}
...
...
This diff is collapsed.
Click to expand it.
www/js/batchval.js
+
10
−
2
View file @
40f4b4f9
WDN
.
jQuery
(
document
).
ready
(
function
(){
})
function
validateAll
()
{
WDN
.
jQuery
(
'
.uri
'
).
each
(
function
(){
...
...
@@ -13,8 +18,11 @@ function validateAll()
WDN
.
jQuery
(
'
body
'
).
dequeue
(
'
validation
'
);
}
function
validateInvalid
()
{
function
validateInvalid
()
{
//scroll to first Invalid
var
falseDiv
=
WDN
.
jQuery
(
"
.false:first
"
).
offset
();
window
.
scroll
(
0
,
falseDiv
.
top
);
WDN
.
jQuery
(
'
.false .uri
'
).
each
(
function
(){
// Grab the URI
var
uri
=
WDN
.
jQuery
(
this
).
html
();
...
...
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