From 73510fe9bdea39f4eb031ed67a4177d7d5b65897 Mon Sep 17 00:00:00 2001 From: Catouse Date: Sat, 3 May 2014 08:38:33 +0800 Subject: [PATCH] * fixed error for ie8. * ajusted style of 'task/recordestimate'. * fixed style of 'tree/browse' for ie8-11. --- module/bug/view/browse.html.php | 2 +- module/task/css/common.css | 2 + module/task/view/editestimate.html.php | 1 - module/task/view/recordestimate.html.php | 114 ++++++++++++----------- module/tree/css/common.css | 7 +- module/tree/view/browse.html.php | 20 ++-- www/js/my.full.js | 12 ++- 7 files changed, 84 insertions(+), 74 deletions(-) diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 3c87c8fde1..02c66ca6de 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -171,7 +171,7 @@ if($customed) common::printIcon('bug', 'confirmBug', $params, $bug, 'list', 'search', '', 'iframe', true); common::printIcon('bug', 'assignTo', $params, '', 'list', '', '', 'iframe', true); common::printIcon('bug', 'resolve', $params, $bug, 'list', '', '', 'iframe', true); - common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe text-danger', true); + common::printIcon('bug', 'close', $params, $bug, 'list', '', '', 'iframe', true); common::printIcon('bug', 'edit', $params, $bug, 'list'); common::printIcon('bug', 'create', "product=$bug->product&extra=bugID=$bug->id", $bug, 'list', 'copy'); ?> diff --git a/module/task/css/common.css b/module/task/css/common.css index e69de29bb2..a3402b8ec0 100644 --- a/module/task/css/common.css +++ b/module/task/css/common.css @@ -0,0 +1,2 @@ +.body-modal > .main {padding: 20px} +.body-modal > .main .table-form {border: 1px solid #ddd} diff --git a/module/task/view/editestimate.html.php b/module/task/view/editestimate.html.php index 90f07be7eb..24eab47a32 100644 --- a/module/task/view/editestimate.html.php +++ b/module/task/view/editestimate.html.php @@ -21,7 +21,6 @@ icons['edit']);?> -
isLast) echo "onsubmit='return confirmLeft();'"?>> diff --git a/module/task/view/recordestimate.html.php b/module/task/view/recordestimate.html.php index 99ea3f6268..bd4bdb4eb3 100644 --- a/module/task/view/recordestimate.html.php +++ b/module/task/view/recordestimate.html.php @@ -20,61 +20,65 @@ task->logEfforts;?> icons['recordEstimate']);?> - -
- - - - - - - - - +
+ +
idAB;?>task->date;?>task->consumedThisTime;?>task->leftThisTime;?>comment;?>actions;?>
+ + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + status == 'wait' or $task->status == 'doing'):?> + + + + + + + + + + + + + + + + + + + + + + + +
idAB;?>task->date;?>task->consumedThisTime;?>task->leftThisTime;?>comment;?>actions;?>
id;?>date;?>consumed;?>left;?>work;?> + status == 'wait' or $task->status == 'doing') + { + common::printIcon('task', 'editEstimate', "estimateID=$estimate->id", '', 'list', 'pencil', '', 'showinonlybody', true); + common::printIcon('task', 'deleteEstimate', "estimateID=$estimate->id", '', 'list', 'remove', 'hiddenwin', 'showinonlybody'); + } + ?> +
id;?>date;?>consumed;?>left;?>work;?> - status == 'wait' or $task->status == 'doing') - { - common::printIcon('task', 'editEstimate', "estimateID=$estimate->id", '', 'list', 'pencil', '', 'showinonlybody', true); - common::printIcon('task', 'deleteEstimate', "estimateID=$estimate->id", '', 'list', 'remove', 'hiddenwin', 'showinonlybody'); - } - ?> -
idAB;?>task->date;?>task->consumedThisTime;?>task->leftThisTime;?>comment;?>
- status == 'wait' or $task->status == 'doing'):?> - - - idAB;?> - task->date;?> - task->consumedThisTime;?> - task->leftThisTime;?> - comment;?> - - - - - - - - - - - - - - - - -
+ + diff --git a/module/tree/css/common.css b/module/tree/css/common.css index 6ac6c5ed31..5d2f25501d 100644 --- a/module/tree/css/common.css +++ b/module/tree/css/common.css @@ -5,6 +5,7 @@ #sonModule {max-width: 240px} #moduleBox span > .form-control {margin-bottom: 5px;} -#moduleBox .copy {display: table; width: 100%} -#moduleBox .copy > .form-control, #moduleBox .copy > .btn {display: table-cell; width: auto} -#moduleBox .copy > .form-control {margin-right: -1px; min-width: 100px} + +.w-260px {width: 260px!important} +table.copy td {padding: 0!important} +table.copy td .form-control {border-right: 0} diff --git a/module/tree/view/browse.html.php b/module/tree/view/browse.html.php index b766a62aaf..054837ff93 100644 --- a/module/tree/view/browse.html.php +++ b/module/tree/view/browse.html.php @@ -61,22 +61,22 @@ { if($allProject) { - echo "
"; - echo html::select('allProject', $allProject, '', "class='form-control' onchange=\"syncProductOrProject(this,'project')\""); - echo html::select('projectModule', $projectModules, '', "class='form-control'"); - echo html::commonButton($lang->tree->syncFromProject, "id='copyModule' onclick='syncModule($currentProject, \"task\")'"); - echo '
'; + echo ""; + echo "'; + echo "'; + echo "'; + echo '
" . html::select('allProject', $allProject, '', "class='form-control' onchange=\"syncProductOrProject(this,'project')\"") . '" . html::select('projectModule', $projectModules, '', "class='form-control'") . '" . html::commonButton($lang->tree->syncFromProject, "id='copyModule' onclick='syncModule($currentProject, \"task\")'") . '
'; } } else if($viewType == 'story') { if($allProduct) { - echo "
"; - echo html::select('allProduct', $allProduct, '', "class='form-control' onchange=\"syncProductOrProject(this,'product')\""); - echo html::select('productModule', $productModules, '', "class='form-control'"); - echo html::commonButton($lang->tree->syncFromProduct, "id='copyModule' onclick='syncModule($currentProduct, \"story\")'"); - echo '
'; + echo ""; + echo "'; + echo "'; + echo "'; + echo '
" . html::select('allProduct', $allProduct, '', "class='form-control' onchange=\"syncProductOrProject(this,'product')\"") . '" . html::select('productModule', $productModules, '', "class='form-control'") . '" . html::commonButton($lang->tree->syncFromProduct, "id='copyModule' onclick='syncModule($currentProduct, \"story\")'") . '
'; } } $maxOrder = 0; diff --git a/www/js/my.full.js b/www/js/my.full.js index 0cd3346b13..b0a45c5cb3 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -914,10 +914,14 @@ function setModal() if(modal.data('first')) modal.data('first', false); }, 100); - $framebody.resize(function() + if($framebody.data('resizing')) { - modalBody.css('height', $framebody.outerHeight()); - }); + $framebody.data('resizing', true).resize(function() + { + modalBody.css('height', $framebody.outerHeight()); + console.log('resize'+(new Date())); + }); + } } var iframe$ = window.frames[options.name].$; @@ -926,7 +930,7 @@ function setModal() iframe$.extend({'closeModal': $.closeModal}); } } - catch(e){modal.removeClass('modal-loading');} + catch(e){modal.removeClass('modal-loading'); console.log('error');} } modal.modal('show'); }