Commit 52b1bb25 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Send messages to the parent window when things happen

parent 6c4bf4dc
......@@ -197,6 +197,11 @@ define(['jquery', 'analytics'], function ($, analytics) {
setTimeout(function() {
if (!searchToggleLock && localGoogleSearch && control == localGoogleSearch.control && $('.gs-no-results-result', $root).length) {
$root.closest('.results-group').find('.result-tab li:last-child').click();
if (window.parent) {
window.parent.postMessage('wdn.search.noLocal', "*");
}
return;
}
}, 1000);
......@@ -205,6 +210,10 @@ define(['jquery', 'analytics'], function ($, analytics) {
$root.closest(googleSel).slideDown();
searchToggleLock = false;
if (window.parent) {
window.parent.postMessage('wdn.search.queryComplete', "*");
}
};
var fullQuery = function(q, track) {
......
Supports Markdown
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