mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 14:41:53 +08:00
Fix JS error in recent protocol drop down
This commit is contained in:
parent
73020043a4
commit
c389972e2a
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global TinyMCE I18n animateSpinner importProtocolFromFile truncateLongString globalConstants */
|
||||
/* global TinyMCE I18n animateSpinner importProtocolFromFile truncateLongString */
|
||||
/* global HelperModule GLOBAL_CONSTANTS */
|
||||
/* eslint-disable no-use-before-define, no-alert, no-restricted-globals, no-underscore-dangle */
|
||||
|
||||
|
@ -437,7 +437,7 @@ function initRecentProtocols() {
|
|||
$.get('/protocols/recent_protocols', result => {
|
||||
$.each(result, (i, protocol) => {
|
||||
$('<div class="protocol"><i class="fas fa-file-alt"></i>'
|
||||
+ truncateLongString(protocol.name, globalConstants.name_truncation_length)
|
||||
+ truncateLongString(protocol.name, GLOBAL_CONSTANTS.NAME_TRUNCATION_LENGTH)
|
||||
+ '</div>').appendTo(dropDownList)
|
||||
.click(() => {
|
||||
$.post(recentProtocolContainer.data('updateUrl'), { source_id: protocol.id })
|
||||
|
|
Loading…
Reference in a new issue