mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -717,8 +717,11 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
|
||||
window[sPromiseId].then(function () {
|
||||
$('#ac_create_'+me.id).dialog('open');
|
||||
$('#ac_create_'+me.id).dialog("option", "close", me.OnCloseCreateObject);
|
||||
// Modify the action of the cancel button
|
||||
$('#ac_create_'+me.id+' button.cancel').off('click').on('click', me.CloseCreateObject);
|
||||
// Modify the action of the cancel button and the close button
|
||||
$('#ac_create_'+me.id+' button.cancel').off('click.navigation.itop').on('click.navigation.itop', me.CloseCreateObject);
|
||||
$('.ui-dialog-titlebar:has(+ #ac_create_'+me.id+') button.ui-dialog-titlebar-close').off('click').on('click', function() {
|
||||
$('#ac_create_'+me.id+' button.cancel').trigger('click');
|
||||
});
|
||||
me.ajax_request = null;
|
||||
me.sTargetClass = sLocalTargetClass;
|
||||
// Adjust the dialog's size to fit into the screen
|
||||
|
||||
18
js/utils.js
18
js/utils.js
@@ -373,6 +373,24 @@ function DashletCreationDlg(sOQL, sContext) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function OpenOql(sOQL) {
|
||||
sBaseUrl = GetAbsoluteUrlAppRoot() + 'pages/run_query.php';
|
||||
var form = document.createElement("form");
|
||||
form.setAttribute("method", "post");
|
||||
form.setAttribute("action", sBaseUrl);
|
||||
form.setAttribute("target", '_blank');
|
||||
form.setAttribute("id", 'run_query_form');
|
||||
var input = document.createElement('input');
|
||||
input.type = 'hidden';
|
||||
input.name = 'expression';
|
||||
input.value = sOQL;
|
||||
form.appendChild(input);
|
||||
document.body.appendChild(form);
|
||||
// form.submit() is blocked by the browser
|
||||
$('#run_query_form').submit();
|
||||
document.body.removeChild(form);
|
||||
}
|
||||
|
||||
function ShortcutListDlg(sOQL, sDataTableId, sContext) {
|
||||
var sDataTableName = 'datatable_'+sDataTableId;
|
||||
var oTableSettings = {
|
||||
|
||||
Reference in New Issue
Block a user