Merge branch 'devops24_51117' into 'master'

Finish task#51117

See merge request easycorp/zentaopms!2629
This commit is contained in:
李玉春
2022-03-30 06:07:52 +00:00
4 changed files with 29 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
$(document).ready(function()
{
limitIframeLevel();
});
+4
View File
@@ -5,3 +5,7 @@ function assign(taskID, assignedTo)
$('.assign').load(createLink('user', 'ajaxGetUser', 'taskID=' + taskID + '&assignedTo=' + assignedTo));
}
$(document).ready(function()
{
limitIframeLevel();
});
+3 -1
View File
@@ -1,4 +1,4 @@
$(document).ready(function()
$(document).ready(function()
{
if(config.onlybody != 'yes')$(".runCase").modalTrigger({width:'90%', type:'iframe', afterHide:function(){parent.location.href=parent.location.href;}});
if(config.onlybody != 'yes')$(".results").modalTrigger({width:'90%', type:'iframe'});
@@ -21,4 +21,6 @@ $(document).ready(function()
setTimeout($.resetToolbarPosition, 50);
});
limitIframeLevel();
})
+18
View File
@@ -848,6 +848,24 @@ function scrollToSelected(id)
}
}
/**
* Limit iframe levels up to 3.
*
* @access public
* @return void
*/
function limitIframeLevel()
{
/* Fix bug #15325. */
if(window.parent != window.top)
{
$('body').find('a.iframe').each(function()
{
$(this).replaceWith($(this).clone().removeClass('iframe'));
});
}
}
/* Ping the server every some minutes to keep the session. */
needPing = true;