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
49
attachment: nyro.custom.anim.js
(1.1 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
36
37
38
39
40
41
42
43
44
45
$(function() {
if($.fn){
//change default show functionality
$.fn.nyroModal.settings.showContent = function(elts, settings, callback) {
var h = elts.loading.height();
var w = elts.loading.width();
//if in doctype strict, and not IE, needs to be height 99%
if(settings.type&&settings.type=='iframe'){
$('iframe',elts.content).eq(0)
.css({
width: '100%',
height: '99%'
});
}
//show the loading
elts.loading
.css({
width: settings.width+'px',
height: settings.height+'px',
marginTop: (settings.marginTop)+'px',
marginLeft: (settings.marginLeft)+'px'
})
.show();
//show the content
elts.contentWrapper
.css({
width: settings.width+'px',
height: settings.height+'px',
marginTop: (settings.marginTop)+'px',
marginLeft: (settings.marginLeft)+'px'
})
.show();
elts.loading.fadeOut(100, callback);
};
//change default hide functionality
$.fn.nyroModal.settings.hideContent = function(elts, settings, callback) {
elts.contentWrapper.hide();
callback();
};
}else{
alert("nyroModal settings:could not find: $.fn: " + $.fn );
}
});
Powered by
Google Project Hosting