var refreshJumpers = function() {
$('.jumper').each(function() {
$(this).bind('change', function() {
var rel = $(this).attr('rel');
var tpl = $(this).attr('tpl');
if (rel == '_self') {
top.location.href = '/' + $(this).val();
}
else if ($(this).val() != '_empty') {
openAjax('/' + $(this).val(), rel, 'refreshJumpers', tpl);
}
});
});
};
$(document).bind('refresh', function() {
refreshJumpers();
});
|