Open the access modal in the secure iframe
This commit is contained in:
@@ -196,6 +196,7 @@ define([
|
||||
]);
|
||||
var $frame = $(frame);
|
||||
frame.closeModal = function (cb) {
|
||||
frame.closeModal = function () {}; // Prevent further calls
|
||||
$frame.fadeOut(150, function () {
|
||||
$frame.detach();
|
||||
if (typeof(cb) === "function") { cb(); }
|
||||
|
||||
@@ -1592,11 +1592,7 @@ define([
|
||||
.text(Messages.accessButton))
|
||||
.click(common.prepareFeedback(type))
|
||||
.click(function () {
|
||||
require(['/common/inner/access.js'], function (Access) {
|
||||
Access.getAccessModal(common, {}, function (e) {
|
||||
if (e) { console.error(e); }
|
||||
});
|
||||
});
|
||||
sframeChan.event('EV_ACCESS_OPEN');
|
||||
});
|
||||
break;
|
||||
case 'properties':
|
||||
|
||||
@@ -129,7 +129,10 @@ define([
|
||||
tabs[i] = {
|
||||
content: c && UI.dialog.customModal(node, {
|
||||
buttons: obj.buttons || button,
|
||||
onClose: function () { blocked = false; }
|
||||
onClose: function () {
|
||||
blocked = false;
|
||||
if (typeof(opts.onClose) === "function") { opts.onClose(); }
|
||||
}
|
||||
}),
|
||||
disabled: !c,
|
||||
title: obj.title,
|
||||
|
||||
@@ -1020,6 +1020,10 @@ define([
|
||||
initSecureModal('filepicker', data || {}, cb);
|
||||
});
|
||||
|
||||
sframeChan.on('EV_ACCESS_OPEN', function (data) {
|
||||
initSecureModal('access', data || {}, null);
|
||||
});
|
||||
|
||||
sframeChan.on('EV_SHARE_OPEN', function (data) {
|
||||
initSecureModal('share', data || {}, null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user