From 91f118a04486b88e5bbecc527ec4f5d148b224ff Mon Sep 17 00:00:00 2001 From: roman3x Date: Thu, 11 Feb 2016 23:35:43 +0100 Subject: [PATCH 1/2] Funkcia pre skopirovanie adresy bydliska do adresy kde poslat --- js/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 128a8cf..7918797 100644 --- a/js/app.js +++ b/js/app.js @@ -148,7 +148,14 @@ $(document).ready(function () $("html, body").animate({ scrollTop: $(document).height() }, 1000); }); $(".help").hide(); - + + $("#copyadress").on("click",function(){ + if ($('#addressslovakia-street').val()) $('#addressforeign-street').val($('#addressslovakia-street').val()); + if ($('#addressslovakia-streetno').val()) $('#addressforeign-streetno').val($('#addressslovakia-streetno').val()); + if ($('#addressslovakia-city').val()) $('#addressforeign-city').val($('#select2-addressslovakia-city-container').html()); + if ($('#addressslovakia-zip').val()) $('#addressforeign-zip').val($('#addressslovakia-zip').val()); + $("html, body").animate({ scrollTop: $(document).height() }, 100); + }); var clipboard = new Clipboard('.copy-btn'); clipboard.on('success', function(e) { From 914bc99829902ba2492884645a66b30bdfd72e47 Mon Sep 17 00:00:00 2001 From: roman3x Date: Thu, 11 Feb 2016 23:38:40 +0100 Subject: [PATCH 2/2] Tlacitko pre skopirovanie adresy bydliska do adresy kde poslat --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 40d89a9..151c608 100644 --- a/index.html +++ b/index.html @@ -416,6 +416,9 @@

Adresa pre odoslanie hlasovacieho preukazu

+
+ Pre skopírovanie adresy trvalého pobytu . +

Adresa miesta pobytu v cudzine