Last active
January 28, 2017 12:29
-
-
Save MikeTatsky/771bff4f11ece74adfa2cd081bb7870f to your computer and use it in GitHub Desktop.
For Manuk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function searchtags(params){ | |
if(params){ | |
var nprice_from = params.paramroom; | |
var nprice_to = params.paramroom; | |
var narea_from = params.paramkorpus; | |
var narea_to = params.paramarea; | |
} | |
else{ | |
var nprice_from = $("#number_price_from").text(); | |
var nprice_to = $("#number_price_to").text(); | |
var narea_from = $("#number_area_from").text(); | |
var narea_to = $("#number_area_to").text(); | |
} | |
... | |
} | |
function getparam(){ | |
return { | |
paramroom: '<?=$room?>', | |
paramfloor: '<?=$floor?>', | |
paramkorpus: '<?=$korpus?>', | |
paramarea: '<?=$common_area?>', | |
paramprice: '<?=$common_price?>' | |
} | |
} | |
searchtags(getparam()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment