Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Sven Rhinow
srlayer
Commits
e4f1a3b0
Commit
e4f1a3b0
authored
Jan 11, 2017
by
Sven Rhinow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kompatibilität jQuery / Mootools verbessert
parent
84179364
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
ModuleSRLayer.php
ModuleSRLayer.php
+21
-2
No files found.
ModuleSRLayer.php
View file @
e4f1a3b0
...
...
@@ -206,8 +206,27 @@ class ModuleSRLayer extends \Module
$GLOBALS
[
'TL_JAVASCRIPT'
][]
=
$jsSource
;
}
if
((
int
)
$this
->
srl_delay
>
0
)
$GLOBALS
[
'TL_JQUERY'
][]
=
'<script type="text/javascript"> jQuery(document).ready(function() { setTimeout(function(){ var ml = new jQuery.srLayer( { '
.
$jsOptions
.
', '
.
$this
->
srl_option_other
.
' } ); }, '
.
$this
->
srl_delay
.
'); });</script>'
;
else
$GLOBALS
[
'TL_JQUERY'
][]
=
'<script type="text/javascript">jQuery(document).ready(function() { jQuery.srLayer( { '
.
$jsOptions
.
', '
.
$this
->
srl_option_other
.
' } ); });</script>'
;
if
((
int
)
$this
->
srl_delay
>
0
)
$GLOBALS
[
'TL_JQUERY'
][]
=
'
<script type="text/javascript">
(function($) {
$(document).ready(function()
{
setTimeout(function()
{
$.srLayer( { '
.
$jsOptions
.
', '
.
$this
->
srl_option_other
.
' } );
}, '
.
$this
->
srl_delay
.
');
});
})(jQuery);
</script>'
;
else
$GLOBALS
[
'TL_JQUERY'
][]
=
'
<script type="text/javascript">
(function($) {
$(document).ready(function()
{
$.srLayer( { '
.
$jsOptions
.
', '
.
$this
->
srl_option_other
.
' } );
});
})(jQuery);
</script>'
;
}
// ansonsten Mootools
...
...
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