Re: [pmapper-users] search one layer
Brought to you by:
arminburger
From: Bogumił S. <sz...@ku...> - 2014-07-23 19:20:00
|
It works.... Thanks a lot! Bogumił W dniu 2014-07-23 20:38, Armin Burger pisze: > $.extend(PM.Query, > { > createSearchItems: function(url) { > $.ajax({ > url: url, > dataType: "json", > success: function(response){ > var searchJson = response.searchJson; > var action = response.action; > > if (action == 'searchitem') { > PM.Query.createSearchInput(searchJson); > } else { > delete searchJson.options[0]; > var searchHtml = PM.Query.json2Select(searchJson, "0"); > $('#searchoptions').html(searchHtml); > PM.Query.setSearchInput(); > $('#searchoptions').html(_p("Search > for")).css({"white-space": "nowrap"}); > } > }, > error: function (XMLHttpRequest, textStatus, errorThrown) { > if (window.console) console.log(errorThrown); > } > }); > } > > }); |