Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update visualizer_ui.js #1322

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion client/src/visualizer_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,12 @@ var VisualizerUI = (function($, window, undefined) {
$('#rapid_model').addClass('ui-widget ui-state-default ui-button-text');

var fillDisambiguatorOptions = function(disambiguators) {
$('#annotation_speed3').button(disambiguators.length ? 'enable': 'disable');
//begin 2019.7.19: this is to compatible with jquery3.4.0
//$('#annotation_speed3').button(disambiguators.length ? 'enable': 'disable');
$('#annotation_speed3').button();
var btnEnable = disambiguators.length ? 'enable': 'disable' ;
$('#annotation_speed3').button(btnEnable);
//end 2019.7.19
//XXX: We need to disable rapid in the conf too if it is not available
var $rapid_mode = $('#rapid_model').html('');
$.each(disambiguators, function(modelNo, model) {
Expand Down