Move the block of code which updates the Readable Bug Status field above the point where we return from the anonymous function in the case of no login session.
$.scrollTo($(this).attr('href').substr(1));
});
+ // Update readable bug status
+ var rbs = $("#readable-bug-status");
+ var rbs_text = bugzillaReadableStatus.readable(rbs.data('readable-bug-status'));
+ rbs.text(rbs_text);
+
if (BUGZILLA.user.id === 0) return;
//
var other = $(that.attr('id') == 'dup_id' ? '#bottom-dup_id' : '#dup_id');
other.val(that.val());
});
- var rbs = $("#readable-bug-status");
- var rbs_text = bugzillaReadableStatus.readable(rbs.data('readable-bug-status'));
- rbs.text(rbs_text);
// add see-also button
$('.bug-urls-btn')