Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jquery_loadinganimation
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jquery_loadinganimation
Commits
29a9c97f
Commit
29a9c97f
authored
13 years ago
by
Julian Pustkuchen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed AJAX functionality.
parent
fb00a643
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jquery_loadinganimation.js
+11
-11
11 additions, 11 deletions
jquery_loadinganimation.js
with
11 additions
and
11 deletions
jquery_loadinganimation.js
+
11
−
11
View file @
29a9c97f
...
...
@@ -23,7 +23,7 @@
$
(
element
).
click
(
function
(
eventObject
)
{
// Nicht bei Öffnen in neuem Tab (Strg+Klick)
if
(
!
eventObject
.
ctrlKey
)
{
Loadinganimation
.
show
();
Drupal
.
behaviors
.
jquery_loadinganimation
.
Loadinganimation
.
show
();
}
});
}
...
...
@@ -38,7 +38,7 @@
if
(
typeof
$
(
this
).
data
(
"
events
"
)
==
'
undefined
'
||
$
(
this
).
data
(
"
events
"
).
length
==
0
)
{
Loadinganimation
.
show
();
Drupal
.
behaviors
.
jquery_loadinganimation
.
Loadinganimation
.
show
();
}
else
{
var
show
=
true
;
jQuery
.
each
(
$
(
this
).
data
(
"
events
"
),
function
(
index
,
element
){
...
...
@@ -47,7 +47,7 @@
}
});
if
(
show
){
Loadinganimation
.
show
();
Drupal
.
behaviors
.
jquery_loadinganimation
.
Loadinganimation
.
show
();
}
}
});
...
...
@@ -55,7 +55,7 @@
// Bei Klick auf die Animation ausblenden
$
(
"
div#loadinganimation
"
).
click
(
function
()
{
Loadinganimation
.
hide
();
Drupal
.
behaviors
.
jquery_loadinganimation
.
Loadinganimation
.
hide
();
});
// Bei ESC wieder ausblenden
...
...
@@ -66,7 +66,7 @@
keycode
=
e
.
which
;
}
if
(
keycode
==
27
)
{
// escape, close box
Loadinganimation
.
hide
();
Drupal
.
behaviors
.
jquery_loadinganimation
.
Loadinganimation
.
hide
();
}
};
};
...
...
@@ -74,11 +74,11 @@
// Initialize!
this
.
_init
(
context
);
// Register global Loadinganimation object after init!
Loadinganimation
=
this
;
// Register global
Drupal.behaviors.jquery_loadinganimation.
Loadinganimation object after init!
Drupal
.
behaviors
.
jquery_loadinganimation
.
Loadinganimation
=
this
;
// Preload images.
jQuery
.
preLoadImages
(
Drupal
.
settings
.
basePath
+
L
oadinganimation
.
settings
.
img_src
);
jQuery
.
preLoadImages
(
Drupal
.
settings
.
basePath
+
Drupal
.
settings
.
jquery_l
oadinganimation
.
img_src
);
/**
* Zeigt die Ladegrafik als Layer über der Seite.
...
...
@@ -89,15 +89,15 @@
$
(
"
body
"
)
.
append
(
'
<div id="loadinganimation"><div class="border top"></div><div class="inner"><img class="first" src="
'
+
Drupal
.
settings
.
basePath
+
L
oadinganimation
.
settings
.
img_src
+
Drupal
.
settings
.
basePath
+
Drupal
.
settings
.
jquery_l
oadinganimation
.
img_src
+
'
" alt="
'
+
Drupal
.
t
(
'
Loading
'
)
+
'
..." /><img class="second" src="
'
+
Drupal
.
settings
.
basePath
+
L
oadinganimation
.
settings
.
img_src
+
Drupal
.
settings
.
basePath
+
Drupal
.
settings
.
jquery_l
oadinganimation
.
img_src
+
'
" alt="
'
+
Drupal
.
t
(
'
Loading
'
)
+
'
..." /><img class="third" src="
'
+
Drupal
.
settings
.
basePath
+
L
oadinganimation
.
settings
.
img_src
+
Drupal
.
settings
.
basePath
+
Drupal
.
settings
.
jquery_l
oadinganimation
.
img_src
+
'
" alt="
'
+
Drupal
.
t
(
'
Loading
'
)
+
'
..." /><br />
'
...
...
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