mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-08 12:56:27 +08:00
Imrove tags update behaviour on canvas [SCI-2830]
This commit is contained in:
parent
380a96dcce
commit
b7ccfccfe0
1 changed files with 14 additions and 16 deletions
|
@ -873,23 +873,21 @@ function bindEditTagsAjax(elements) {
|
||||||
|
|
||||||
// Reload tags HTML element when modal is closed
|
// Reload tags HTML element when modal is closed
|
||||||
manageTagsModal.on("hide.bs.modal", function(){
|
manageTagsModal.on("hide.bs.modal", function(){
|
||||||
var tasks = $("div.panel");
|
var task = $("div.panel[data-module-id='" +
|
||||||
|
manageTagsModal.data('module-id') + "']");
|
||||||
|
|
||||||
tasks.each(function(){
|
// Load HTML
|
||||||
var task = $(this);
|
$.ajax({
|
||||||
// Load HTML
|
url: task.attr("data-module-tags-url"),
|
||||||
$.ajax({
|
type: "GET",
|
||||||
url: task.attr("data-module-tags-url"),
|
dataType: "json",
|
||||||
type: "GET",
|
success: function(data){
|
||||||
dataType: "json",
|
task.find(".edit-tags-link")
|
||||||
success: function(data){
|
.html(data.html_canvas);
|
||||||
task.find(".edit-tags-link")
|
},
|
||||||
.html(data.html_canvas);
|
error: function(data){
|
||||||
},
|
// TODO
|
||||||
error: function(data){
|
}
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue