mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 21:03:01 +09:00
add document ready to orderbutton js
This commit is contained in:
1 parent
71bd95fe3a
commit
af7f09a249
1 file changed
+16
-15
@@ -107,18 +107,19 @@ function popup(){
|
||||
$('#popup-iframe').show();
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof jQuery === "undefined") {
|
||||
(function(d, script) {
|
||||
script = d.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
script.async = true;
|
||||
script.onload = function(){
|
||||
show_popup();
|
||||
};
|
||||
script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js';
|
||||
d.getElementsByTagName('head')[0].appendChild(script);
|
||||
}(document));
|
||||
}else{
|
||||
show_popup();
|
||||
};
|
||||
$( document ).ready(function() {
|
||||
if (typeof jQuery === "undefined") {
|
||||
(function(d, script) {
|
||||
script = d.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
script.async = true;
|
||||
script.onload = function(){
|
||||
show_popup();
|
||||
};
|
||||
script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js';
|
||||
d.getElementsByTagName('head')[0].appendChild(script);
|
||||
}(document));
|
||||
}else{
|
||||
show_popup();
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user