
Dave
Staff
/ Moderator

Mar 15, 2010, 10:10 AM
Post #5 of 6
(3552 views)
Shortcut
|
|
Re: [concrete] website Favorites
[In reply to]
|
Can't Post
|
|
Hi concrete, I tried a few things, but I think the the simplest way to add a redirect on add right now is to modify the websiteFavorites.js file that comes with the plugin and add this line in red:
// function wsf_add(tableOrTag, recordNum, reload) { var $ = jQuery; // see: http://docs.jquery.com/Core/jQuery.noConflict var addClass = _wsf_getClassFor(tableOrTag, recordNum, 'add'); var removeClass = _wsf_getClassFor(tableOrTag, recordNum, 'remove'); $.ajax({ url: '?_wsf_action=add&tableOrTag=' +escape(tableOrTag)+ '&recordNum=' + escape(recordNum), success: function(errorMessage){ if (errorMessage) { return alert("Error: " + errorMessage); } if (reload == true) { return window.location.reload(); } $(addClass).hide(); $(removeClass).show(); window.location = "http://www.google.com/"; return true; } }); } Hope that helps. Let me know if that works for you. Dave Edis - Senior Developer interactivetools.com
|