Something like this, keeping in mind that the screen ID is 112 and the variable is 50/1/0:
$(function(){
if (typeof grp == 'undefined') {
return;
}
$('body').on('showplan', function(event, id) {
if (id == 112) {
grp.write('50/1/0', 0);
}
}).trigger('showplan', [ currentPlanId ]);
});
$(function(){
if (typeof grp == 'undefined') {
return;
}
$('body').on('showplan', function(event, id) {
if (id == 112) {
grp.write('50/1/0', 0);
}
}).trigger('showplan', [ currentPlanId ]);
});