diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php
index 5d4c1e7f91..ec7c5a4a4a 100644
--- a/module/project/view/task.html.php
+++ b/module/project/view/task.html.php
@@ -65,7 +65,7 @@ js::set('browseType', $browseType);
echo html::selectButton();
$actionLink = $this->createLink('task', 'batchEdit', "projectID=$projectID");
- $misc = $canBatchEdit ? "onclick=\"setFormAction('$actionLink')\"" : "disabled='disabled'";
+ $misc = $canBatchEdit ? "onclick=\"setFormAction('$actionLink', '', '#projectTaskForm')\"" : "disabled='disabled'";
echo "
";
echo html::commonButton($lang->edit, $misc);
@@ -73,11 +73,11 @@ js::set('browseType', $browseType);
echo "';
if($withSearch) echo "";
@@ -114,7 +114,7 @@ js::set('browseType', $browseType);
foreach ($memberPairs as $key => $value)
{
if(empty($key)) continue;
- echo "
" . html::a("javascript:$(\".table-actions #assignedTo\").val(\"$key\");setFormAction(\"$actionLink\")", $value, '', '') . '';
+ echo "" . html::a("javascript:$(\".table-actions #assignedTo\").val(\"$key\");setFormAction(\"$actionLink\", null, \"#projectTaskForm\")", $value, '', '') . '';
}
echo "";
if($withSearch) echo "";
diff --git a/www/js/my.full.js b/www/js/my.full.js
index 554411a61b..fb7a494fb7 100644
--- a/www/js/my.full.js
+++ b/www/js/my.full.js
@@ -547,7 +547,8 @@ function setFormAction(actionLink, hiddenwin, obj)
$form.attr('action', actionLink);
// Check safari for bug #1000, see http://pms.zentao.net/bug-view-1000.html
- var isSafari = navigator.userAgent.indexOf('AppleWebKit') > -1;
+ var userAgent = navigator.userAgent;
+ var isSafari = userAgent.indexOf('AppleWebKit') > -1 && userAgent.indexOf('Safari') > -1 && userAgent.indexOf('Chrome') < 0;
if(isSafari)
{
var idPreffix = 'checkbox-fix-' + $.zui.uuid();