mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 06:06:24 +08:00
Fix error on opening inventory
This commit is contained in:
parent
54c78cf4d1
commit
8a647ee003
1 changed files with 4 additions and 1 deletions
|
|
@ -189,5 +189,8 @@
|
|||
js_format.gsub!(/%B/, 'MMMM')
|
||||
js_format.gsub!('%Y', 'YYYY')
|
||||
%>
|
||||
const formatJS = "<%= js_format %>"
|
||||
|
||||
if (typeof(formatJS) == undefined) { // Turbolinks fix
|
||||
const formatJS = "<%= js_format %>"
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue