Display properties modal in the secure iframe

pull/1/head
yflory 5 years ago
parent ca8c50ca37
commit 43904df0fb

@ -1607,11 +1607,7 @@ define([
if (!data) { if (!data) {
return void UI.alert(Messages.autostore_notAvailable); return void UI.alert(Messages.autostore_notAvailable);
} }
require(['/common/inner/properties.js'], function (Properties) { sframeChan.event('EV_PROPERTIES_OPEN');
Properties.getPropertiesModal(common, {}, function (e) {
if (e) { console.error(e); }
});
});
}); });
}); });
break; break;

@ -1020,6 +1020,10 @@ define([
initSecureModal('filepicker', data || {}, cb); initSecureModal('filepicker', data || {}, cb);
}); });
sframeChan.on('EV_PROPERTIES_OPEN', function (data) {
initSecureModal('properties', data || {}, null);
});
sframeChan.on('EV_ACCESS_OPEN', function (data) { sframeChan.on('EV_ACCESS_OPEN', function (data) {
initSecureModal('access', data || {}, null); initSecureModal('access', data || {}, null);
}); });

@ -73,6 +73,20 @@ define([
displayed = modal; displayed = modal;
}; };
// Properties modal
create['properties'] = function (data) {
require(['/common/inner/properties.js'], function (Properties) {
Properties.getPropertiesModal(common, {
onClose: function () {
hideIframe();
}
}, function (e) {
if (e) { console.error(e); }
displayed = modal;
});
});
};
// Access modal // Access modal
create['access'] = function (data) { create['access'] = function (data) {
require(['/common/inner/access.js'], function (Access) { require(['/common/inner/access.js'], function (Access) {

Loading…
Cancel
Save