Improve share modal customization to make it work with async functions

This commit is contained in:
yflory
2018-01-25 14:20:55 +01:00
parent fd4ed3ce3b
commit 3d3f58b3fc
2 changed files with 16 additions and 14 deletions

View File

@@ -375,8 +375,8 @@ define([
}
if (val.embed) { $(link).find('#cp-share-embed').attr('checked', true); }
if (val.present) { $(link).find('#cp-share-present').attr('checked', true); }
UI.openCustomModal(UI.dialog.tabs(tabs));
});
return tabs;
};
UIElements.createFileShareModal = function (config) {
var origin = config.origin;
@@ -451,7 +451,7 @@ define([
pathname: pathname
});
}
UI.openCustomModal(UI.dialog.tabs(tabs));
return tabs;
};
UIElements.createButton = function (common, type, rightside, data, callback) {