add document ready to orderbutton js

This commit is contained in:
Vaidas Lungis committed 2015-02-03 15:46:57 +02:00
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();
};
});