My favorites
▼
|
Sign in
nyromodal
nyroModal - jQuery Modal Plugin
Project Home
Downloads
Issues
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
480
attachment: jquery.nyroModal.js.patch
(1.2 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/jquery.nyroModal.js b/jquery.nyroModal.js
--- a/jquery.nyroModal.js
+++ b/jquery.nyroModal.js
@@ -402,16 +402,27 @@
if (currentSettings.selector)
jFrom.prepend('<input type="hidden" name="'+currentSettings.selIndicator+'" value="'+currentSettings.selector.substring(1)+'" />');
modal.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe" src="javascript:\'\';"></iframe>');
- $('iframe', modal.tmp)
+
+ if(/opera/.test(userAgent)){
+ var timeout = 200;
+ debug('opera form hack');
+ } else {
+ var timeout = 0;
+ }
+ setTimeout(
+ function(){
+ $('iframe', modal.tmp)
.css({
width: currentSettings.width,
height: currentSettings.height
})
.error(loadingError)
.load(formDataLoaded);
- debug('Form Data Load: '+jFrom.attr('action'));
- showModal();
- showContentOrLoading();
+ debug('Form Data Load: '+jFrom.attr('action'));
+ showModal();
+ showContentOrLoading();
+ }, timeout);
+
} else if (currentSettings.type == 'image') {
debug('Image Load: '+url);
var title = jFrom.attr('title') || currentSettings.defaultImgAlt;
Powered by
Google Project Hosting