Skip to content

Instantly share code, notes, and snippets.

@bluemango
Created March 2, 2010 20:30
Show Gist options
  • Save bluemango/319890 to your computer and use it in GitHub Desktop.
Save bluemango/319890 to your computer and use it in GitHub Desktop.
ScreenStepsLiveSearchOptions = {
domain: "youraccount.screenstepslive.com",
space: "your space id",
update_element: "screenstepslive-search-results",
username: "login",
password: "password",
use_ssl: false
}
var f = function () {
if (jQuery('#screenstepslive-search').length) {
setTimeout(f, 1000);
} else {
jQuery('div#bugviewContainerEdit').after('<script src="http://screenstepslive.com/javascripts/push/screenstepslive.js" type="text/javascript" charset="utf-8"></script>')
jQuery('div#bugviewContainerEdit').append('<div id="screenstepslive-search"><form id="screenstepslive-search" action=""><label>Search</label><p><input type="text" id="screenstepslive-search-field" value="" name="text"></input><input type="submit" value="Search"></p></form><div id="screenstepslive-search-results"></div></div><br />');
jQuery('#screenstepslive-search').submit(function(e){
e.preventDefault();
search_string = jQuery('#screenstepslive-search input#screenstepslive-search-field').val();
SearchScreenStepsLiveSpace(search_string);
});
setTimeout( f, 1000)
}
};
setTimeout(f, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment