mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
N°6734 - Fix not being able to add dashlets to a dashboard when iBackofficeDictEntriesExtension is used and its JS files are loaded through ajax calls
This commit is contained in:
@@ -332,11 +332,14 @@ $(function()
|
||||
oParams.dashlet_class = sDashletClass;
|
||||
oParams.dashlet_id = sDashletId;
|
||||
oParams.dashlet_type = options.dashlet_type;
|
||||
oParams.ajax_promise_id = 'ajax_promise_' + sDashletId;
|
||||
var me = this;
|
||||
$.post(this.options.render_to, oParams, function (data) {
|
||||
me.ajax_div.html(data);
|
||||
me.add_dashlet_finalize(options, sDashletId, sDashletClass);
|
||||
me.mark_as_modified();
|
||||
window[oParams.ajax_promise_id].then(function(){
|
||||
me.add_dashlet_finalize(options, sDashletId, sDashletClass);
|
||||
me.mark_as_modified();
|
||||
});
|
||||
});
|
||||
},
|
||||
on_dashlet_moved: function (oDashlet, oReceiver, bRefresh) {
|
||||
|
||||
Reference in New Issue
Block a user