#1102 - Исправить карту на странице Контакты.

parent 17c185c0
...@@ -10,15 +10,17 @@ function printHtml(html) ...@@ -10,15 +10,17 @@ function printHtml(html)
mywindow.document.close(); // necessary for IE >= 10 mywindow.document.close(); // necessary for IE >= 10
mywindow.focus(); // necessary for IE >= 10 mywindow.focus(); // necessary for IE >= 10
mywindow.print(); setTimeout(function() {
mywindow.close(); mywindow.print();
mywindow.close();
}, 200);
return true; return true;
} }
$(document).ready(function() { $(document).ready(function() {
$('.map_print_button').click(function(){ $('.map_print_button').click(function(){
var html = $(this).closest('.popup').find('.print-block').html() + "<center><img src=\"/images/map_moscow.jpg\"></center>"; var html = $(this).closest('.popup').find('.print-block').html() + "<img src=\"/images/map_moscow.jpg\">";
printHtml(html); printHtml(html);
return false; return false;
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment