Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
1dbdf436
Commit
1dbdf436
authored
Aug 13, 2006
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved plugins to the new plugin directory.
parent
f3ac04e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
compat.js
plugins/compat/compat.js
+41
-0
form.js
plugins/form/form.js
+0
-0
No files found.
plugins/compat/compat.js
0 → 100644
View file @
1dbdf436
// Since we're using Prototype's $ function,
// be nice and have backwards compatability
if
(
typeof
Prototype
!=
"undefined"
)
{
if
(
$a
.
constructor
==
String
)
{
var
re
=
new
RegExp
(
"[^a-zA-Z0-9_-]"
);
if
(
!
re
.
test
(
$a
)
)
{
$c
=
$c
&&
$c
.
documentElement
||
document
;
if
(
$c
.
getElementsByTagName
(
$a
).
length
===
0
)
{
var
obj
=
$c
.
getElementById
(
$a
);
if
(
obj
)
{
return
obj
;
}
}
}
}
else
if
(
$a
.
constructor
==
Array
)
{
return
$
.
map
(
$a
,
function
(
b
){
if
(
b
.
constructor
==
String
)
{
return
document
.
getElementById
(
b
);
}
return
b
;
});
}
}
// TODO: Remove need to return this
for
(
var
i
in
$
.
fn
)
{
if
(
self
[
i
]
!==
null
)
self
[
"_"
+
i
]
=
self
[
i
];
self
[
i
]
=
$
.
fn
[
i
];
}
if
(
typeof
Prototype
!=
"undefined"
&&
$a
.
constructor
!=
String
)
{
if
(
$c
)
$a
=
self
.
get
();
for
(
var
k
in
self
)
{(
function
(
j
){
try
{
if
(
!
$a
[
j
]
)
$a
[
j
]
=
function
()
{
return
$
.
apply
(
self
,
self
[
j
],
arguments
);
};
}
catch
(
e
)
{}
})(
k
);}
return
$a
;
}
form/form.js
→
plugins/
form/form.js
View file @
1dbdf436
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment