Skip to content

Commit

Permalink
Surround selectpicker call with try-catch. Fixes kiwitcms#695
Browse files Browse the repository at this point in the history
A temporary workaround until templates/case/clone.html is refactored into Patternfly when bootstrap-select can be imported and used
  • Loading branch information
asankov committed Jan 11, 2019
1 parent c01c380 commit 6a06589
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tcms/static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ function updateSelect(data, selector, id_attr, value_attr) {
});

_select_tag.innerHTML = new_options;
$(selector).selectpicker('refresh');

try {
$(selector).selectpicker('refresh');
} catch(e) {
console.warn(e);
}
}


Expand Down

0 comments on commit 6a06589

Please sign in to comment.