mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
Fixed counter bug SCI-3005
This commit is contained in:
parent
108d8474f1
commit
c6ab6da381
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ var CounterBadge = (function() {
|
|||
$('.' + type +
|
||||
'-badge-indicator[data-linked-id="' +
|
||||
linkedId + '"]').first();
|
||||
console.log(count)
|
||||
if (badge.length) {
|
||||
badge.html(count);
|
||||
if (count > 0) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="panel panel-default module-large
|
||||
<%= get_task_alert_color(my_module) %>
|
||||
<%= get_task_alert_color(my_module) %>"
|
||||
id="<%= my_module.id %>"
|
||||
data-module-id="<%= my_module.id %>"
|
||||
data-module-name="<%= my_module.name %>"
|
||||
|
@ -9,6 +9,7 @@
|
|||
data-module-x="<%= my_module.x %>"
|
||||
data-module-y="<%= my_module.y %>"
|
||||
data-module-conns="<%= construct_module_connections(my_module) %>"
|
||||
data-module-users-tab-url="<%= my_module_user_my_modules_url(my_module_id: my_module.id, format: :json) %>"
|
||||
data-module-tags-url="<%= my_module_tags_experiment_path(my_module.experiment, format: :json) %>">
|
||||
|
||||
<% if can_manage_module?(my_module) %>
|
||||
|
|
Loading…
Reference in a new issue