This commit is contained in:
zmagod 2017-01-19 09:40:39 +01:00
parent 88d7cb200e
commit 27d3868f37
3 changed files with 1231 additions and 9 deletions

View file

@ -251,7 +251,7 @@ var SmartAnnotation = (function() {
if(atWhoUpdating || (!$(field).length && _.isUndefined(searchFilter))) {
setTimeout(function() {
$(field).atwho('run');
}, 100);
}, 300);
return;
}
@ -259,7 +259,7 @@ var SmartAnnotation = (function() {
setTimeout(function() {
remoteFilterCb();
atWhoUpdating = false;
}, 100);
}, 300);
}
function atWhoSettings(at, defaultSearchFilter) {

View file

@ -90,11 +90,15 @@
<div class="col-xs-12">
<% step.checklists.each do |checklist| %>
<strong><%= auto_link(
simple_format(
smart_annotation_parser(checklist.name)
smart_annotation_parser(
simple_format(
checklist.name,
sanitize: false
)
),
link: :urls,
html: { target: '_blank' }) %></strong>
sanitize: false,
html: { target: '_blank' }).html_safe %></strong>
<% if checklist.checklist_items.empty? %>
</br>
<%= t("protocols.steps.empty_checklist") %>
@ -109,11 +113,15 @@
<input type="checkbox" value="" disabled="disabled" />
<% end %>
<%= auto_link(
simple_format(
smart_annotation_parser(checklist_item.text)
smart_annotation_parser(
simple_format(
checklist_item.text,
sanitize: false
)
),
link: :urls,
html: { target: '_blank' }) %>
sanitize: false,
html: { target: '_blank' }).html_safe %>
</label>
</div>
<% end %>

File diff suppressed because one or more lines are too long