WordPress.org

Plugin Directory

Changeset 1722711


Ignore:
Timestamp:
08/31/17 14:12:21 (7 weeks ago)
Author:
asbaumgart
Message:

Release 1.17.1

Location:
wolfnet-idx-for-wordpress
Files:
205 added
10 edited

Legend:

Unmodified
Added
Removed
  • wolfnet-idx-for-wordpress/trunk/ReadMe.txt

    r1713757 r1722711  
    55Requires at least:   3.5.1 
    66Tested up to:        4.8.1 
    7 Stable tag:          1.17.0 
     7Stable tag:          1.17.1 
    88License:             GPLv2 or later 
    99License URI:         https://www.gnu.org/licenses/gpl-2.0.html 
     
    9696 
    9797== Changelog == 
     98 
     99= 1.17.1 = 
     100 
     101* Fix for sites that use Google Maps outside of this plugin 
     102* Fix for Javascript error in new Smart Search functionality 
    98103 
    99104= 1.17.0 = 
  • wolfnet-idx-for-wordpress/trunk/package.json

    r1713757 r1722711  
    11{ 
    22  "name": "wolfnet-idx-for-wordpress", 
    3   "version": "1.17.0", 
     3  "version": "1.17.1", 
    44  "description": "WolfNet IDX for WordPress", 
    55  "homepage": "https://github.com/wolfnet/wordpressplugin", 
  • wolfnet-idx-for-wordpress/trunk/public/js/jquery.wolfnetSmartsearch.min.js

    r1713757 r1722711  
    1 !function(a){var b="wolfnetSmartSearch",c=b+".state",d={fields:[],minLength:3,fieldMap:{},searchField:null,suggestionHoverClass:"wnt-hover"},e={enabled:!1,markets:null,allMarkets:null,currentMarket:null,labelLookup:null,actionLookup:null,submitted:!1},f={init:function(b){return b.ajaxUrl?b.ajaxAction?this.each(function(){var g=a(this),h=a.extend(!0,{},d,b);if(e.markets=b.markets,e.markets.length)for(e.enabled=!0,e.labelLookup={},e.actionLookup={},e.allMarkets=[],i=0;i<e.markets.length;i++)e.labelLookup[e.markets[i].datasource_name]=e.markets[i].market_label,e.actionLookup[e.markets[i].datasource_name]=e.markets[i].site_url,e.allMarkets.push(e.markets[i].datasource_name);0===h.fields.length&&h.fields.push(g.attr("name")),g.data(c,h),f.createInputControl(g),f.createSuggestionControl(g),f.defineEvents(g),f.refreshExistingValues(g,null,!1),f.submitHandler(g)}):(a.error('The "ajaxAction" option must be included when initializing the plugin.'),this):(a.error('The "ajaxUrl" option must be included when initializing the plugin.'),this)},disable:function(){return this.each(function(){var b=a(this),d=b.data(c),e=d.listContainer;b.prop("disabled",!0),e.hide()})},enable:function(){return this.each(function(){var b=a(this),d=b.data(c),e=d.listContainer;b.prop("disabled",!1),e.show()})},getContainer:function(){var b=a();return this.each(function(){var d=a(this),e=d.data(c),f=e.listContainer;b=b.add(f)}),b},createInputControl:function(b){var d=a(b[0].form),e=b.data(c),g=a("<input>").attr({autocomplete:"off",name:"q"==b.attr("name")?"q":"",placeholder:b.attr("placeholder"),type:"text"}).css({outline:"none",minWidth:"5em",width:"100%"}).val(b.val()),h=a("<span>").addClass("wnt-smart-search-input").css({display:"inline-block",width:"100%"}).append(g),i=a("<span>").addClass(b.attr("class")).css({"text-align":"left"}).append(h).click(function(){g.focus()}).resize(function(){f.resizeSuggestionsList(b)}).insertBefore(b);b.is(":focus")&&g.focus(),b.hide(),b.prependTo(d),"q"==b.attr("name")&&(b.removeAttr("name"),g.val(b.val())),e.searchInput=g,e.listContainer=i,b.data(c,e)},createSuggestionControl:function(b){var d=b.data(c),e=d.listContainer;d.searchInput;d.searchingClass="wnt-message-searching"+d.componentId;var f=a("<div>").addClass(d.searchingClass).text("Searching ..."),g=a("<div>").addClass("wnt-suggestions").css({position:"absolute",left:0,width:e.outerWidth()+1,backgroundColor:"white",zIndex:9e6}).hide().append(f).appendTo(a(".smart-menu"+d.componentId));d.suggestionContainer=g,b.data(c,d)},updateSuggestionsList:function(b,d){var g=b.data(c),h=(g.listContainer,g.suggestionContainer);g.searchInput,g.suggestionHoverClass;if(f.resizeSuggestionsList(b),f.resetSuggestionsList(b),d.length>0){for(var i in d){var j=a("<span>").text(d[i].value).addClass("wolfnet-suggestion-label");if(e.enabled&&null==e.currentMarket&&e.markets.length>1)var k=d[i].market,l=" in "+e.labelLookup[k];else{var k=null;l=""}var m=a("<span>").text(d[i].label+l).addClass("wolfnet-suggestion-field"),n=a("<span>").css("clear","both");a("<div>").addClass("wnt-suggestion").data("value",d[i].value).data("field",d[i].field).data("datasource",k).append(j).append(m).append(n).appendTo(h).on("click",f.suggestionClick).on("mouseover",{$smartSearch:b},f.suggestionMouseover).on("wntSelect",{$smartSearch:b},f.suggestionOnWntSearch)}f.showSuggestionsList(b)}else f.resetSuggestionsList(b)},submitHandler:function(b){var c=a(b[0].form);c.submit(function(a){return!e.enabled||(1==e.markets.length?c.attr("action",e.actionLookup[e.markets[0].datasource_name]):c.attr("action",e.actionLookup[e.currentMarket]),!0)})},defineEvents:function(b){var d=b.data(c),e=d.searchInput,g=(d.listContainer,d.suggestionContainer),h=a(b[0].form);h.width()<=500&&f.applyNarrowCSS(h),b.on("wntFocus",function(a){e.focus()});for(var i=0,j=d.fields.length;i<j;i++){var k=h.find('input[name="'+d.fields[i]+'"]');k.on("change",{$smartSearch:b},f.fieldChange)}e.on("keydown",{$smartSearch:b},f.searchInputKeydown).on("keyup",{$smartSearch:b},f.searchInputKeyup).on("blur",{$smartSearch:b},f.searchInputBlur).on("focus",{$smartSearch:b},f.searchInputFocus),g.on("mouseover",{$smartSearch:b},f.suggestionContainerMouseover).on("mouseout",{$smartSearch:b},f.suggestionContainerMouseout),h.on("reset",function(){f.removeAllValues(b)})},getFieldNameFromFieldMap:function(a,b){var d=a.data(c).fieldMap||{};return d[b]||b},suggestionsVisibleWithResults:function(a){var b=a.data(c).suggestionContainer,d=b.is(":not(:hidden)"),e=b.find(".wnt-suggestion").length>0;return d&&e},widestElementWidth:function(b){var c=0;return b.each(function(){var b=a(this).outerWidth();c=b>c?b:c}),c},input:function(b,d){var g=b.data(c),h=(g.suggestionContainer,a(b[0].form)),i=h.find(".wnt-ss-value").length;if(g.xhr&&g.xhr.abort(),d.length>=g.minLength){var j={term:d};g.searchField&&(j.field=g.searchField),e.enabled&&(1==e.markets.length?j.marketList='["'+e.markets[0].datasource_name+'"]':e.markets.length>1&&0==i?(e.currentMarket=null,j.marketList=JSON.stringify(e.allMarkets)):null!=e.currentMarket&&(j.marketList='["'+e.currentMarket+'"]')),g.xhr=a.ajax({url:g.ajaxUrl,data:{action:g.ajaxAction,data:j},dataType:"jsonp",context:b,beforeSend:function(){f.showSearchingMessage(this)}}).done(function(a){f.updateSuggestionsList(this,a)}).always(function(a){f.hideSearchingMessage(this)}),b.data(c,g)}else f.resetSuggestionsList(b)},addValue:function(b,d,g,h,i){h="undefined"!=typeof h&&h;var j=b.data(c),k=(j.listContainer,a(b[0].form)),l=j.searchInput,m=!1;null==e.currentMarket&&(e.currentMarket=i),g=f.getFieldNameFromFieldMap(b,g);var n=k.find('input[name="'+g+'"]');0===n.length&&(n=a("<input>").attr({name:g,type:"hidden"}).appendTo(k));var o=n.val().split(",");a.inArray(d,o)==-1&&(m=!0,o.push(d)),n.val(o.join(",").replace(/(^,)|(,$)/g,""));var p=a("<span>").data("value",d).data("field",g).addClass("wnt-ss-value").css("display","inline-block").on("wntRemove",function(){var c=a(this),d=c.data("value"),e=c.data("field");f.removeValue(b,d,e)});a("<span>").text(d).appendTo(p),a("<span>").addClass("wnt-close-btn").addClass("icon").addClass("icon-close").html("<span>x</span>").appendTo(p).click(function(){var b=a(this).parent();b.trigger("wntRemove")});if(p.insertBefore(l.parent()),f.resizeSuggestionsList(b),!h&&(b.trigger("wntSmartSearchUpdated"),m)){var q=jQuery.Event("change");q.relatedTarget=b[0],n.trigger(q)}},removeValue:function(b,d,e){var g=b.data(c),h=g.listContainer,i=a(b[0].form),j=!1;e=f.getFieldNameFromFieldMap(b,e)||e;var k=i.find('input[name="'+e+'"]');if(0!==k.length){var l=a.grep(k.val().split(","),function(a){return j=a==d||j,a!=d});if(k.val(l.join(",").replace(/(^,)|(,$)/g,"")),h.children(".wnt-ss-value").each(function(){var b=a(this),c=b.data("value")||"",f=b.data("field")||"";c==d&&e&&f==e&&b.remove()}),f.resizeSuggestionsList(b),b.trigger("wntSmartSearchUpdated"),j){var m=jQuery.Event("change");m.relatedTarget=b[0],k.trigger(m)}}},removeAllValues:function(b){var d=b.data(c),e=d.listContainer;e.children(".wnt-ss-value").each(function(){var c=a(this),d=c.data("value")||"",e=c.data("field")||"";""!==d&&""!==e&&f.removeValue(b,d,e)})},removeMostRecentValue:function(b){var d=b.data(c).listContainer||a("<span>");d.children(".wnt-ss-value:last").trigger("wntRemove")},showSuggestionsList:function(b){var d=b.data(c).suggestionContainer.show(),e=f.widestElementWidth(d.find(".wolfnet-suggestion-field")),g=d.find(".wnt-suggestion:first").width()-e;d.find(".wolfnet-suggestion-label").each(function(){var b=a(this);b.width()>g-10&&b.width(g-10)})},hideSuggestionsList:function(a){a.data(c).suggestionContainer.hide()},resetSuggestionsList:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.children(".wnt-suggestion");f.hideSuggestionsList(a),e.remove()},moveSuggestionSelectUp:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.find(".wnt-suggestion.wnt-hover"),f=e.prev(".wnt-suggestion");f.length&&(f.addClass("wnt-hover"),e.removeClass("wnt-hover"))},moveSuggestionSelectDown:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.find(".wnt-suggestion.wnt-hover"),f=e.next(".wnt-suggestion");f.length&&(f.addClass("wnt-hover"),e.removeClass("wnt-hover"))},selectHighlightedSuggestion:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.find(".wnt-suggestion.wnt-hover");e.trigger("wntSelect")},showSearchingMessage:function(a){var b=a.data(c);b.suggestionContainer.children("."+b.searchingClass).show(),f.showSuggestionsList(a)},hideSearchingMessage:function(a){var b=a.data(c);b.suggestionContainer.children("."+b.searchingClass).hide()},refreshExistingValues:function(b,d,e){e="undefined"!=typeof e&&e;for(var g=a(b[0].form),h=b.data(c),i=h.listContainer,j={},k=[],l=[],m=0,n=h.fields.length;m<n;m++){var o=g.find('input[name="'+h.fields[m]+'"]');if(0!==o.length){var p=a.trim(o.val()).split(",");j[h.fields[m]]=p;for(var q=0,r=p.length;q<r;q++){var s=h.fields[m],t=p[q];""!==a.trim(p[q])&&k.push({field:s,value:t})}}}i.find("span.wnt-ss-value").each(function(){for(var b=a(this),c={field:b.data("field"),value:b.data("value")},d=0,e=[],f=k.length;d<f;d++){var g=k[d];g.field==c.field&&g.value==c.value||e.push(g)}k=e,j[c.field]&&a.inArray(c.value,j[c.field])!=-1||l.push(c)});for(var u=0,v=k.length;u<v;u++)f.addValue(b,k[u].value,k[u].field,e);for(var w=0,x=l.length;w<x;w++)f.removeValue(b,l[w].value,l[w].field)},resizeSuggestionsList:function(a){var b=a.data(c),d=b.listContainer,e=b.suggestionContainer;d.offset();f.toggleInputPlaceholder(a);var g=0,h=d.outerWidth()+parseInt(d.css("margin-left"))+parseInt(d.css("margin-right"));e.css({top:top,left:g,width:h})},toggleInputPlaceholder:function(b){var d=b.data(c),e=d.searchInput,f=d.listContainer,g=f.children(".wnt-ss-value").children().length;0===g?(a(".wnt-smart-search-input").css("width","100%"),e.attr("placeholder",b.attr("placeholder")).css("width","100%")):(a(".wnt-smart-search-input").css("width",0),e.attr("placeholder","").css("width","auto"))},searchInputKeydown:function(b){var c=a(this),d=b.data.$smartSearch;switch(b.keyCode){case 9:case 16:case 17:case 18:case 19:case 20:case 33:case 34:case 35:case 36:case 37:case 39:case 45:case 91:case 92:case 93:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 144:case 145:case 186:case 187:case 188:case 189:case 192:return!0;case 13:if(""!==c.val()&&f.suggestionsVisibleWithResults(d))return b.preventDefault(),f.selectHighlightedSuggestion(d),!1;break;case 8:""===c.val()&&f.removeMostRecentValue(d);break;case 40:case 38:return b.preventDefault(),!1}},searchInputKeyup:function(b){var c=a(this),d=b.data.$smartSearch,e=(c.parent().parent(),a(d[0].form));switch("q"==d.attr("name")&&d.trigger(b),b.keyCode){case 9:case 16:case 17:case 18:case 19:case 20:case 33:case 34:case 35:case 36:case 37:case 39:case 45:case 91:case 92:case 93:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 144:case 145:case 186:case 187:case 188:case 189:case 192:return!0;case 27:return f.hideSuggestionsList(d),!1;case 13:return f.suggestionsVisibleWithResults(d)?(b.preventDefault(),!1):(e.submit(),!0);case 40:return b.preventDefault(),f.moveSuggestionSelectDown(d),!1;case 38:return b.preventDefault(),f.moveSuggestionSelectUp(d),!1;case 8:return f.input(d,c.val()),f.toggleInputPlaceholder(d),!0;default:f.input(d,c.val())}},searchInputBlur:function(a){var b=a.data.$smartSearch,d=b.data(c),e=d.listContainer;e.removeClass("focus"),d.overSuggestions||f.hideSuggestionsList(b)},searchInputFocus:function(a){var b=a.data.$smartSearch,d=b.data(c),e=d.listContainer;e.addClass("focus"),f.resetSuggestionsList(b)},suggestionContainerMouseover:function(a){var b=a.data.$smartSearch,d=b.data(c);d.overSuggestions=!0,b.data(c,d)},suggestionContainerMouseout:function(a){var b=a.data.$smartSearch,d=b.data(c),e=d.searchInput;d.overSuggestions=!1,b.data(c,d),e.is(":focus")||f.hideSuggestionsList(b)},suggestionClick:function(b){var c=a(this);c.trigger("wntSelect")},suggestionMouseover:function(b){var d=a(this),e=b.data.$smartSearch,f=e.data(c).suggestionHoverClass;d.addClass(f),d.siblings("."+f).removeClass(f)},suggestionOnWntSearch:function(b){var d=a(this),e=b.data.$smartSearch,g=e.data(c),h=g.searchInput,i=d.data("value"),j=d.data("field"),k=d.data("datasource");h.val(""),f.resetSuggestionsList(e),f.addValue(e,i,j,!1,k),e.trigger("wntFocus")},fieldChange:function(a){var b=a.data.$smartSearch;a.relatedTarget!=b[0]&&f.refreshExistingValues(b,a)},applyNarrowCSS:function(a){a.find(".wolfnet_smartPriceFields").css({width:"100%",clear:"both"}),a.find(".wolfnet_smartBedBathFields").css({width:"100%",clear:"both"}),a.find(".wolfnet_smartSubmit").css({width:"100%",clear:"both"}),a.find(".wolfnet_smartMinPrice").css({width:"50%"}),a.find(".wolfnet_smartMaxPrice").css({width:"50%"}),a.find(".wolfnet_smartBeds").css({width:"50%"}),a.find(".wolfnet_smartBaths").css({width:"50%"})}};a.fn[b]=function(b){return f[b]?f[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery."+pluginName):f.init.apply(this,arguments)}}(jQuery); 
     1!function(a){var b="wolfnetSmartSearch",c=b+".state",d={fields:[],minLength:3,fieldMap:{},searchField:null,suggestionHoverClass:"wnt-hover"},e={enabled:!1,markets:null,allMarkets:null,currentMarket:null,labelLookup:null,actionLookup:null,submitted:!1},f={init:function(b){return b.ajaxUrl?b.ajaxAction?this.each(function(){var g=a(this),h=a.extend(!0,{},d,b);if("undefined"==typeof b.markets?e.markets="":e.markets=b.markets,e.markets.length)for(e.enabled=!0,e.labelLookup={},e.actionLookup={},e.allMarkets=[],i=0;i<e.markets.length;i++)e.labelLookup[e.markets[i].datasource_name]=e.markets[i].market_label,e.actionLookup[e.markets[i].datasource_name]=e.markets[i].site_url,e.allMarkets.push(e.markets[i].datasource_name);0===h.fields.length&&h.fields.push(g.attr("name")),g.data(c,h),f.createInputControl(g),f.createSuggestionControl(g),f.defineEvents(g),f.refreshExistingValues(g,null,!1),f.submitHandler(g)}):(a.error('The "ajaxAction" option must be included when initializing the plugin.'),this):(a.error('The "ajaxUrl" option must be included when initializing the plugin.'),this)},disable:function(){return this.each(function(){var b=a(this),d=b.data(c),e=d.listContainer;b.prop("disabled",!0),e.hide()})},enable:function(){return this.each(function(){var b=a(this),d=b.data(c),e=d.listContainer;b.prop("disabled",!1),e.show()})},getContainer:function(){var b=a();return this.each(function(){var d=a(this),e=d.data(c),f=e.listContainer;b=b.add(f)}),b},createInputControl:function(b){var d=a(b[0].form),e=b.data(c),g=a("<input>").attr({autocomplete:"off",name:"q"==b.attr("name")?"q":"",placeholder:b.attr("placeholder"),type:"text"}).css({outline:"none",minWidth:"5em",width:"100%"}).val(b.val()),h=a("<span>").addClass("wnt-smart-search-input").css({display:"inline-block",width:"100%"}).append(g),i=a("<span>").addClass(b.attr("class")).css({"text-align":"left"}).append(h).click(function(){g.focus()}).resize(function(){f.resizeSuggestionsList(b)}).insertBefore(b);b.is(":focus")&&g.focus(),b.hide(),b.prependTo(d),"q"==b.attr("name")&&(b.removeAttr("name"),g.val(b.val())),e.searchInput=g,e.listContainer=i,b.data(c,e)},createSuggestionControl:function(b){var d=b.data(c),e=d.listContainer;d.searchInput;d.searchingClass="wnt-message-searching"+d.componentId;var f=a("<div>").addClass(d.searchingClass).text("Searching ..."),g=a("<div>").addClass("wnt-suggestions").css({position:"absolute",left:0,width:e.outerWidth()+1,backgroundColor:"white",zIndex:9e6}).hide().append(f).appendTo(a(".smart-menu"+d.componentId));d.suggestionContainer=g,b.data(c,d)},updateSuggestionsList:function(b,d){var g=b.data(c),h=(g.listContainer,g.suggestionContainer);g.searchInput,g.suggestionHoverClass;if(f.resizeSuggestionsList(b),f.resetSuggestionsList(b),d.length>0){for(var i in d){var j=a("<span>").text(d[i].value).addClass("wolfnet-suggestion-label");if(e.enabled&&null==e.currentMarket&&e.markets.length>1)var k=d[i].market,l=" in "+e.labelLookup[k];else{var k=null;l=""}var m=a("<span>").text(d[i].label+l).addClass("wolfnet-suggestion-field"),n=a("<span>").css("clear","both");a("<div>").addClass("wnt-suggestion").data("value",d[i].value).data("field",d[i].field).data("datasource",k).append(j).append(m).append(n).appendTo(h).on("click",f.suggestionClick).on("mouseover",{$smartSearch:b},f.suggestionMouseover).on("wntSelect",{$smartSearch:b},f.suggestionOnWntSearch)}f.showSuggestionsList(b)}else f.resetSuggestionsList(b)},submitHandler:function(b){var c=a(b[0].form);c.submit(function(a){return!e.enabled||(1==e.markets.length?c.attr("action",e.actionLookup[e.markets[0].datasource_name]):c.attr("action",e.actionLookup[e.currentMarket]),!0)})},defineEvents:function(b){var d=b.data(c),e=d.searchInput,g=(d.listContainer,d.suggestionContainer),h=a(b[0].form);h.width()<=500&&f.applyNarrowCSS(h),b.on("wntFocus",function(a){e.focus()});for(var i=0,j=d.fields.length;i<j;i++){var k=h.find('input[name="'+d.fields[i]+'"]');k.on("change",{$smartSearch:b},f.fieldChange)}e.on("keydown",{$smartSearch:b},f.searchInputKeydown).on("keyup",{$smartSearch:b},f.searchInputKeyup).on("blur",{$smartSearch:b},f.searchInputBlur).on("focus",{$smartSearch:b},f.searchInputFocus),g.on("mouseover",{$smartSearch:b},f.suggestionContainerMouseover).on("mouseout",{$smartSearch:b},f.suggestionContainerMouseout),h.on("reset",function(){f.removeAllValues(b)})},getFieldNameFromFieldMap:function(a,b){var d=a.data(c).fieldMap||{};return d[b]||b},suggestionsVisibleWithResults:function(a){var b=a.data(c).suggestionContainer,d=b.is(":not(:hidden)"),e=b.find(".wnt-suggestion").length>0;return d&&e},widestElementWidth:function(b){var c=0;return b.each(function(){var b=a(this).outerWidth();c=b>c?b:c}),c},input:function(b,d){var g=b.data(c),h=(g.suggestionContainer,a(b[0].form)),i=h.find(".wnt-ss-value").length;if(g.xhr&&g.xhr.abort(),d.length>=g.minLength){var j={term:d};g.searchField&&(j.field=g.searchField),e.enabled&&(1==e.markets.length?j.marketList='["'+e.markets[0].datasource_name+'"]':e.markets.length>1&&0==i?(e.currentMarket=null,j.marketList=JSON.stringify(e.allMarkets)):null!=e.currentMarket&&(j.marketList='["'+e.currentMarket+'"]')),g.xhr=a.ajax({url:g.ajaxUrl,data:{action:g.ajaxAction,data:j},dataType:"jsonp",context:b,beforeSend:function(){f.showSearchingMessage(this)}}).done(function(a){f.updateSuggestionsList(this,a)}).always(function(a){f.hideSearchingMessage(this)}),b.data(c,g)}else f.resetSuggestionsList(b)},addValue:function(b,d,g,h,i){h="undefined"!=typeof h&&h;var j=b.data(c),k=(j.listContainer,a(b[0].form)),l=j.searchInput,m=!1;null==e.currentMarket&&(e.currentMarket=i),g=f.getFieldNameFromFieldMap(b,g);var n=k.find('input[name="'+g+'"]');0===n.length&&(n=a("<input>").attr({name:g,type:"hidden"}).appendTo(k));var o=n.val().split(",");a.inArray(d,o)==-1&&(m=!0,o.push(d)),n.val(o.join(",").replace(/(^,)|(,$)/g,""));var p=a("<span>").data("value",d).data("field",g).addClass("wnt-ss-value").css("display","inline-block").on("wntRemove",function(){var c=a(this),d=c.data("value"),e=c.data("field");f.removeValue(b,d,e)});a("<span>").text(d).appendTo(p),a("<span>").addClass("wnt-close-btn").addClass("icon").addClass("icon-close").html("<span>x</span>").appendTo(p).click(function(){var b=a(this).parent();b.trigger("wntRemove")});if(p.insertBefore(l.parent()),f.resizeSuggestionsList(b),!h&&(b.trigger("wntSmartSearchUpdated"),m)){var q=jQuery.Event("change");q.relatedTarget=b[0],n.trigger(q)}},removeValue:function(b,d,e){var g=b.data(c),h=g.listContainer,i=a(b[0].form),j=!1;e=f.getFieldNameFromFieldMap(b,e)||e;var k=i.find('input[name="'+e+'"]');if(0!==k.length){var l=a.grep(k.val().split(","),function(a){return j=a==d||j,a!=d});if(k.val(l.join(",").replace(/(^,)|(,$)/g,"")),h.children(".wnt-ss-value").each(function(){var b=a(this),c=b.data("value")||"",f=b.data("field")||"";c==d&&e&&f==e&&b.remove()}),f.resizeSuggestionsList(b),b.trigger("wntSmartSearchUpdated"),j){var m=jQuery.Event("change");m.relatedTarget=b[0],k.trigger(m)}}},removeAllValues:function(b){var d=b.data(c),e=d.listContainer;e.children(".wnt-ss-value").each(function(){var c=a(this),d=c.data("value")||"",e=c.data("field")||"";""!==d&&""!==e&&f.removeValue(b,d,e)})},removeMostRecentValue:function(b){var d=b.data(c).listContainer||a("<span>");d.children(".wnt-ss-value:last").trigger("wntRemove")},showSuggestionsList:function(b){var d=b.data(c).suggestionContainer.show(),e=f.widestElementWidth(d.find(".wolfnet-suggestion-field")),g=d.find(".wnt-suggestion:first").width()-e;d.find(".wolfnet-suggestion-label").each(function(){var b=a(this);b.width()>g-10&&b.width(g-10)})},hideSuggestionsList:function(a){a.data(c).suggestionContainer.hide()},resetSuggestionsList:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.children(".wnt-suggestion");f.hideSuggestionsList(a),e.remove()},moveSuggestionSelectUp:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.find(".wnt-suggestion.wnt-hover"),f=e.prev(".wnt-suggestion");f.length&&(f.addClass("wnt-hover"),e.removeClass("wnt-hover"))},moveSuggestionSelectDown:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.find(".wnt-suggestion.wnt-hover"),f=e.next(".wnt-suggestion");f.length&&(f.addClass("wnt-hover"),e.removeClass("wnt-hover"))},selectHighlightedSuggestion:function(a){var b=a.data(c),d=b.suggestionContainer,e=d.find(".wnt-suggestion.wnt-hover");e.trigger("wntSelect")},showSearchingMessage:function(a){var b=a.data(c);b.suggestionContainer.children("."+b.searchingClass).show(),f.showSuggestionsList(a)},hideSearchingMessage:function(a){var b=a.data(c);b.suggestionContainer.children("."+b.searchingClass).hide()},refreshExistingValues:function(b,d,e){e="undefined"!=typeof e&&e;for(var g=a(b[0].form),h=b.data(c),i=h.listContainer,j={},k=[],l=[],m=0,n=h.fields.length;m<n;m++){var o=g.find('input[name="'+h.fields[m]+'"]');if(0!==o.length){var p=a.trim(o.val()).split(",");j[h.fields[m]]=p;for(var q=0,r=p.length;q<r;q++){var s=h.fields[m],t=p[q];""!==a.trim(p[q])&&k.push({field:s,value:t})}}}i.find("span.wnt-ss-value").each(function(){for(var b=a(this),c={field:b.data("field"),value:b.data("value")},d=0,e=[],f=k.length;d<f;d++){var g=k[d];g.field==c.field&&g.value==c.value||e.push(g)}k=e,j[c.field]&&a.inArray(c.value,j[c.field])!=-1||l.push(c)});for(var u=0,v=k.length;u<v;u++)f.addValue(b,k[u].value,k[u].field,e);for(var w=0,x=l.length;w<x;w++)f.removeValue(b,l[w].value,l[w].field)},resizeSuggestionsList:function(a){var b=a.data(c),d=b.listContainer,e=b.suggestionContainer;d.offset();f.toggleInputPlaceholder(a);var g=0,h=d.outerWidth()+parseInt(d.css("margin-left"))+parseInt(d.css("margin-right"));e.css({top:top,left:g,width:h})},toggleInputPlaceholder:function(b){var d=b.data(c),e=d.searchInput,f=d.listContainer,g=f.children(".wnt-ss-value").children().length;0===g?(a(".wnt-smart-search-input").css("width","100%"),e.attr("placeholder",b.attr("placeholder")).css("width","100%")):(a(".wnt-smart-search-input").css("width",0),e.attr("placeholder","").css("width","auto"))},searchInputKeydown:function(b){var c=a(this),d=b.data.$smartSearch;switch(b.keyCode){case 9:case 16:case 17:case 18:case 19:case 20:case 33:case 34:case 35:case 36:case 37:case 39:case 45:case 91:case 92:case 93:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 144:case 145:case 186:case 187:case 188:case 189:case 192:return!0;case 13:if(""!==c.val()&&f.suggestionsVisibleWithResults(d))return b.preventDefault(),f.selectHighlightedSuggestion(d),!1;break;case 8:""===c.val()&&f.removeMostRecentValue(d);break;case 40:case 38:return b.preventDefault(),!1}},searchInputKeyup:function(b){var c=a(this),d=b.data.$smartSearch,e=(c.parent().parent(),a(d[0].form));switch("q"==d.attr("name")&&d.trigger(b),b.keyCode){case 9:case 16:case 17:case 18:case 19:case 20:case 33:case 34:case 35:case 36:case 37:case 39:case 45:case 91:case 92:case 93:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 144:case 145:case 186:case 187:case 188:case 189:case 192:return!0;case 27:return f.hideSuggestionsList(d),!1;case 13:return f.suggestionsVisibleWithResults(d)?(b.preventDefault(),!1):(e.submit(),!0);case 40:return b.preventDefault(),f.moveSuggestionSelectDown(d),!1;case 38:return b.preventDefault(),f.moveSuggestionSelectUp(d),!1;case 8:return f.input(d,c.val()),f.toggleInputPlaceholder(d),!0;default:f.input(d,c.val())}},searchInputBlur:function(a){var b=a.data.$smartSearch,d=b.data(c),e=d.listContainer;e.removeClass("focus"),d.overSuggestions||f.hideSuggestionsList(b)},searchInputFocus:function(a){var b=a.data.$smartSearch,d=b.data(c),e=d.listContainer;e.addClass("focus"),f.resetSuggestionsList(b)},suggestionContainerMouseover:function(a){var b=a.data.$smartSearch,d=b.data(c);d.overSuggestions=!0,b.data(c,d)},suggestionContainerMouseout:function(a){var b=a.data.$smartSearch,d=b.data(c),e=d.searchInput;d.overSuggestions=!1,b.data(c,d),e.is(":focus")||f.hideSuggestionsList(b)},suggestionClick:function(b){var c=a(this);c.trigger("wntSelect")},suggestionMouseover:function(b){var d=a(this),e=b.data.$smartSearch,f=e.data(c).suggestionHoverClass;d.addClass(f),d.siblings("."+f).removeClass(f)},suggestionOnWntSearch:function(b){var d=a(this),e=b.data.$smartSearch,g=e.data(c),h=g.searchInput,i=d.data("value"),j=d.data("field"),k=d.data("datasource");h.val(""),f.resetSuggestionsList(e),f.addValue(e,i,j,!1,k),e.trigger("wntFocus")},fieldChange:function(a){var b=a.data.$smartSearch;a.relatedTarget!=b[0]&&f.refreshExistingValues(b,a)},applyNarrowCSS:function(a){a.find(".wolfnet_smartPriceFields").css({width:"100%",clear:"both"}),a.find(".wolfnet_smartBedBathFields").css({width:"100%",clear:"both"}),a.find(".wolfnet_smartSubmit").css({width:"100%",clear:"both"}),a.find(".wolfnet_smartMinPrice").css({width:"50%"}),a.find(".wolfnet_smartMaxPrice").css({width:"50%"}),a.find(".wolfnet_smartBeds").css({width:"50%"}),a.find(".wolfnet_smartBaths").css({width:"50%"})}};a.fn[b]=function(b){return f[b]?f[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery."+pluginName):f.init.apply(this,arguments)}}(jQuery); 
    22//# sourceMappingURL=jquery.wolfnetSmartsearch.min.js.map 
  • wolfnet-idx-for-wordpress/trunk/public/js/jquery.wolfnetSmartsearch.min.js.map

    r1713757 r1722711  
    1 {"version":3,"sources":["jquery.wolfnetSmartsearch.src.js"],"names":["$","wntPlugin","stateKey","defaultOptions","fields","minLength","fieldMap","searchField","suggestionHoverClass","multiMarket","enabled","markets","allMarkets","currentMarket","labelLookup","actionLookup","submitted","methods","init","options","ajaxUrl","ajaxAction","this","each","$smartSearch","opts","extend","length","i","datasource_name","market_label","site_url","push","attr","data","createInputControl","createSuggestionControl","defineEvents","refreshExistingValues","submitHandler","error","disable","pluginData","$list","listContainer","prop","hide","enable","show","getContainer","$container","add","$form","form","$searchInput","autocomplete","name","placeholder","type","css","outline","minWidth","width","val","$inputListItem","addClass","display","append","text-align","click","focus","resize","resizeSuggestionsList","insertBefore","is","prependTo","removeAttr","searchInput","$searchingMessage","text","$suggestions","position","left","outerWidth","backgroundColor","zIndex","appendTo","suggestionContainer","updateSuggestionsList","resetSuggestionsList","$valueLabel","value","datasource","market","marketSuffix","$fieldLabel","label","$clearFix","field","on","suggestionClick","suggestionMouseover","suggestionOnWntSearch","showSuggestionsList","submit","event","applyNarrowCSS","l","$field","find","fieldChange","searchInputKeydown","searchInputKeyup","searchInputBlur","searchInputFocus","suggestionContainerMouseover","suggestionContainerMouseout","removeAllValues","getFieldNameFromFieldMap","suggestionsVisibleWithResults","$suggestionContainer","isVisible","hasResults","widestElementWidth","$elements","elementWidth","input","term","suggestionCount","xhr","abort","marketList","JSON","stringify","ajax","url","action","dataType","context","beforeSend","showSearchingMessage","done","always","hideSearchingMessage","addValue","isSilent","fieldInputChanged","$fieldInput","split","inArray","join","replace","$item","v","f","removeValue","html","parent","trigger","changeEvent","jQuery","Event","relatedTarget","grep","children","remove","removeMostRecentValue","widestFieldLabel","remainingContainerWidth","$label","hideSuggestionsList","moveSuggestionSelectUp","$selectedOption","$prev","prev","removeClass","moveSuggestionSelectDown","$next","next","selectHighlightedSuggestion","e","fieldValues","valueButNoItem","itemButNoValue","values","trim","ii","ll","vMap","a","valueSet","i2","l2","i3","l3","offset","toggleInputPlaceholder","parseInt","top","numcriteria","keyCode","preventDefault","overSuggestions","$suggestion","hoverClass","siblings","clear","fn","method","apply","Array","prototype","slice","call","arguments","pluginName"],"mappings":"CAAA,SAAUA,GAET,GAAIC,GAAY,qBACZC,EAAWD,EAAY,SAEvBE,GACHC,UACAC,UAAW,EACXC,YACAC,YAAa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AAwBlD,KAClCG,MAAO,OACPgJ,MAAO,SAIR1J,EAAMyD,KAAK,0BAA0BlD,KAAKG,MAAQ,QAClDV,EAAMyD,KAAK,0BAA0BlD,KAAKG,MAAQ,QAClDV,EAAMyD,KAAK,sBAAsBlD,KAAKG,MAAQ,QAC9CV,EAAMyD,KAAK,uBAAuBlD,KAAKG,MAAQ,SAMjD9D,GAAE+M,GAAG9M,GAAa,SAAS+M,GAE1B,MAAI/L,GAAQ+L,GACJ/L,EAAQ+L,GAAQC,MAAM3L,KAAM4L,MAAMC,UAAUC,MAAMC,KAAKC,UAAW,IAC7C,gBAAXN,IAAwBA,MAGzChN,GAAEwC,MAAO,UAAawK,EAAS,6BAA+BO,YAFvDtM,EAAQC,KAAK+L,MAAO3L,KAAMgM,aAMjCtD","file":"jquery.wolfnetSmartsearch.min.js"} 
     1{"version":3,"sources":["jquery.wolfnetSmartsearch.src.js"],"names":["$","wntPlugin","stateKey","defaultOptions","fields","minLength","fieldMap","searchField","suggestionHoverClass","multiMarket","enabled","markets","allMarkets","currentMarket","labelLookup","actionLookup","submitted","methods","init","options","ajaxUrl","ajaxAction","this","each","$smartSearch","opts","extend","length","i","datasource_name","market_label","site_url","push","attr","data","createInputControl","createSuggestionControl","defineEvents","refreshExistingValues","submitHandler","error","disable","pluginData","$list","listContainer","prop","hide","enable","show","getContainer","$container","add","$form","form","$searchInput","autocomplete","name","placeholder","type","css","outline","minWidth","width","val","$inputListItem","addClass","display","append","text-align","click","focus","resize","resizeSuggestionsList","insertBefore","is","prependTo","removeAttr","searchInput","$searchingMessage","text","$suggestions","position","left","outerWidth","backgroundColor","zIndex","appendTo","suggestionContainer","updateSuggestionsList","resetSuggestionsList","$valueLabel","value","datasource","market","marketSuffix","$fieldLabel","label","$clearFix","field","on","suggestionClick","suggestionMouseover","suggestionOnWntSearch","showSuggestionsList","submit","event","applyNarrowCSS","l","$field","find","fieldChange","searchInputKeydown","searchInputKeyup","searchInputBlur","searchInputFocus","suggestionContainerMouseover","suggestionContainerMouseout","removeAllValues","getFieldNameFromFieldMap","suggestionsVisibleWithResults","$suggestionContainer","isVisible","hasResults","widestElementWidth","$elements","elementWidth","input","term","suggestionCount","xhr","abort","marketList","JSON","stringify","ajax","url","action","dataType","context","beforeSend","showSearchingMessage","done","always","hideSearchingMessage","addValue","isSilent","fieldInputChanged","$fieldInput","split","inArray","join","replace","$item","v","f","removeValue","html","parent","trigger","changeEvent","jQuery","Event","relatedTarget","grep","children","remove","removeMostRecentValue","widestFieldLabel","remainingContainerWidth","$label","hideSuggestionsList","moveSuggestionSelectUp","$selectedOption","$prev","prev","removeClass","moveSuggestionSelectDown","$next","next","selectHighlightedSuggestion","e","fieldValues","valueButNoItem","itemButNoValue","values","trim","ii","ll","vMap","a","valueSet","i2","l2","i3","l3","offset","toggleInputPlaceholder","parseInt","top","numcriteria","keyCode","preventDefault","overSuggestions","$suggestion","hoverClass","siblings","clear","fn","method","apply","Array","prototype","slice","call","arguments","pluginName"],"mappings":"CAAA,SAAUA,GAET,GAAIC,GAAY,qBACZC,EAAWD,EAAY,SAEvBE,GACHC,UACAC,UAAW,EACXC,YACAC,YAAa,KACbC,qBAAsB,aAGnBC,GACHC,SAAS,EACTC,QAAS,KACTC,WAAY,KACZC,cAAe,KACfC,YAAa,KACbC,aAAc,KACdC,WAAW,GAGRC,GAQHC,KAAM,SAASC,GAGd,MAAKA,GAAQC,QAIRD,EAAQE,WAKNC,KAAKC,KAAK,WAEhB,GAAIC,GAAexB,EAAEsB,MACjBG,EAAOzB,EAAE0B,QAAO,KAAUvB,EAAgBgB,EAS9C,IAP+B,mBAApBA,GAAQR,QAClBF,EAAYE,QAAU,GAEtBF,EAAYE,QAAUQ,EAAQR,QAI3BF,EAAYE,QAAQgB,OAOvB,IANAlB,EAAYC,SAAU,EAGtBD,EAAYK,eACZL,EAAYM,gBACZN,EAAYG,cACPgB,EAAI,EAAGA,EAAInB,EAAYE,QAAQgB,OAAQC,IAG3CnB,EAAYK,YAAYL,EAAY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aAMjCtD","file":"jquery.wolfnetSmartsearch.min.js"} 
  • wolfnet-idx-for-wordpress/trunk/public/js/jquery.wolfnetSmartsearch.src.js

    r1713757 r1722711  
    4646                var $smartSearch = $(this); 
    4747                var opts = $.extend(true, {}, defaultOptions, options); 
    48                 multiMarket.markets = options.markets; 
     48 
     49                if (typeof options.markets === "undefined") { 
     50                    multiMarket.markets = ''; 
     51                } else { 
     52                    multiMarket.markets = options.markets; 
     53                } 
    4954 
    5055                // multi-market enabled if pertinent arguments contain data 
  • wolfnet-idx-for-wordpress/trunk/src/Data.php

    r1693831 r1722711  
    8181    public function getMap($listingsData, $keyid, $productKey = null) 
    8282    { 
     83        wp_enqueue_script('wolfnet-maptracks'); 
     84        wp_enqueue_script('wolfnet-map-driver'); 
     85        //wp_enqueue_script('wolfnet-maptracks-theme'); 
    8386        return $this->plugin->views->mapView($listingsData, $keyid, $productKey); 
    8487    } 
  • wolfnet-idx-for-wordpress/trunk/src/Listings.php

    r1693831 r1722711  
    286286        foreach ($listingsData as &$listing) { 
    287287 
    288             // If sold_price is empty, use listing_price 
    289             if (empty($listing['sold_price'])) { 
    290                 $listing['listing_price'] = '$' . number_format($listing['listing_price']); 
    291  
    292             // If sold_price is populated, use that 
    293             } else { 
    294                 $listing['listing_price'] = '$' . number_format($listing['sold_price']); 
    295             } 
     288            // If sold_price is empty, use listing_price 
     289            if (empty($listing['sold_price'])) { 
     290 
     291                // Empty string listing price if it's null coming from the API 
     292                if (strlen($listing['listing_price'])) { 
     293                    $listing['listing_price'] = '$' . number_format($listing['listing_price']); 
     294                } else { 
     295                    $listing['listing_price'] = ''; 
     296                } 
     297 
     298            // If sold_price is populated, use that 
     299            } else { 
     300                $listing['listing_price'] = '$' . number_format($listing['sold_price']); 
     301            } 
    296302 
    297303            if ($show_logo && empty($listing['branding']['logo'])&& !empty($br_logo_url)) { 
  • wolfnet-idx-for-wordpress/trunk/src/Plugin.php

    r1713757 r1722711  
    3737     * @var string 
    3838     */ 
    39     public $version = '1.17.0'; 
     39    public $version = '1.17.1'; 
    4040 
    4141    /** 
  • wolfnet-idx-for-wordpress/trunk/src/Template.php

    r1693831 r1722711  
    5151        ); 
    5252 
    53         // Include map scripts only on non-header/footer action requests 
    54         if ( 
    55             !has_action('wp_ajax_wolfnet_content_header') && !has_action('wp_ajax_wolfnet_content_footer') && 
    56             (!isset($_SERVER['REQUEST_URI']) || !preg_match('/(header|footer)[^\/]*\.php/', $_SERVER['REQUEST_URI'])) 
    57         ) { 
    58             array_push($scripts, 'wolfnet-maptracks'); 
    59             array_push($scripts, 'wolfnet-map-driver'); 
    60             //array_push($scripts, 'wolfnet-maptracks-theme'); 
    61         } 
    62  
    6353        foreach ($scripts as $script) { 
    6454            wp_enqueue_script($script); 
     
    193183                array(), 
    194184                $this->version, 
     185                true, 
    195186            ), 
    196187            'wolfnet-maptracks' => array( 
     
    198189                array('jquerywnt', 'google-maps'), 
    199190                $this->version, 
     191                true, 
    200192            ), 
    201193            'wolfnet-map-driver' => array( 
     
    203195                array('jquery'), 
    204196                $this->version, 
     197                true, 
    205198            ), 
    206199            // Uncomment if the MapTracks theme JS is ever needed 
  • wolfnet-idx-for-wordpress/trunk/wolfnet.php

    r1713757 r1722711  
    66 * Description:  The WolfNet IDX for WordPress plugin provides IDX search solution integration with 
    77 *               any WordPress website. 
    8  * Version:      1.17.0 
     8 * Version:      1.17.1 
    99 * Author:       WolfNet Technologies, LLC. 
    1010 * Author URI:   http://www.wolfnet.com 
Note: See TracChangeset for help on using the changeset viewer.