diff --git a/module/file/view/download.html.php b/module/file/view/download.html.php index 3b913a9917..ee649ef236 100644 --- a/module/file/view/download.html.php +++ b/module/file/view/download.html.php @@ -23,7 +23,7 @@ $fileContent = file_get_contents($file->realPath); if($charset != $config->charset) { - $fileContent = helper::convertEncoding($fileContent, $charset, $config->charset); + $fileContent = helper::convertEncoding($fileContent, $charset . "//IGNORE", $config->charset); } else { diff --git a/module/testtask/js/common.js b/module/testtask/js/common.js index 63032b82b1..fcee896bf6 100644 --- a/module/testtask/js/common.js +++ b/module/testtask/js/common.js @@ -20,3 +20,11 @@ $(document).ready(function() } }); }) + +function adjustPriBoxWidth() +{ + var boxWidth = $('#ownerAndPriBox').width(); + var beginWidth = $("input[name='begin']").outerWidth(); + var addonWidth = $('#ownerAndPriBox .input-group-addon').outerWidth(); + $('#pri,#pri_chosen .chosen-single').css('width', boxWidth - beginWidth -addonWidth); +} diff --git a/module/testtask/js/create.js b/module/testtask/js/create.js index 637c69a1d4..2d2f0f5c45 100755 --- a/module/testtask/js/create.js +++ b/module/testtask/js/create.js @@ -61,5 +61,5 @@ function suitEndDate() /* If the mouse hover over the manage contacts button, give tip. */ $(function() { - $('[data-toggle=tooltip]').tooltip(); + adjustPriBoxWidth(); }); diff --git a/module/testtask/js/edit.js b/module/testtask/js/edit.js index ae6af5abce..c312df3585 100755 --- a/module/testtask/js/edit.js +++ b/module/testtask/js/edit.js @@ -27,12 +27,5 @@ function loadProjectBuilds(projectID) $(function() { - var adjustPriBoxWidth = function() - { - var boxWidth = $('#ownerAndPriBox').width(); - var beginWidth = $("input[name='begin']").outerWidth(); - var addonWidth = $('#ownerAndPriBox .input-group-addon').outerWidth(); - $('#pri').css('width', boxWidth - beginWidth -addonWidth); - }; - adjustPriBoxWidth();//Adjust testtask pri box width. + adjustPriBoxWidth(); }) diff --git a/module/testtask/view/create.html.php b/module/testtask/view/create.html.php index a968fcb883..e0630e34e4 100644 --- a/module/testtask/view/create.html.php +++ b/module/testtask/view/create.html.php @@ -14,80 +14,83 @@ -