diff --git a/module/bug/css/create.css b/module/bug/css/create.css index a1e7e704e7..b7597cc6b5 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -16,6 +16,15 @@ #module_chosen.chosen-container .chosen-drop {min-width: 400px; border-top: 1px solid #ddd!important} #openedBuild_chosen.chosen-container .chosen-drop {min-width: 450px; border-top: 1px solid #ddd!important} +#module + .chosen-container-single .chosen-single, +#openedBuild + .chosen-container-multi .chosen-choices {border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px;} +#openedBuild + .chosen-container-multi .chosen-choices, +#mailto + .chosen-container-multi .chosen-choices {border-top-right-radius: 0; border-bottom-right-radius: 0; margin-left: -1px;} -.row .col-sm-8{width:75%;} -.row .col-sm-4{padding-left:0px; width:25%;} +.dropdown-pris > .btn {background-color: #fff; text-shadow: none} + +/* Keep label has same width as relative task label*/ +#keywordsAddonLabel:before {content: '空'; color: transparent} + +#contactListGroup .input-group-btn > .btn {margin-left: -1px!important;} +#contactListGroup .input-group-btn > .btn:first-child {border-left: none} diff --git a/module/bug/js/create.js b/module/bug/js/create.js index b07044dece..98372a66e0 100644 --- a/module/bug/js/create.js +++ b/module/bug/js/create.js @@ -55,47 +55,6 @@ function setAssignedTo(moduleID, productID) }); } -$(function() -{ - if($('#project').val()) loadProjectRelated($('#project').val()); - $('#saveTplBtn').on('click', function() - { - var content = $('#steps').val(); - bootbox.prompt(setTemplateTitle, function(r) - { - if(!r || !content) return; - saveTemplateLink = createLink('bug', 'saveTemplate'); - $.post(saveTemplateLink, {title:r, content:content}, function(data) - { - $('#tplBox').html(data); - }); - }); - }); -}); - -// /* Save template. */ -// KindEditor.plugin('savetemplate', function(K) -// { -// var self = this, name = 'savetemplate'; -// self.plugin.savetemplate = -// { -// click: function(id) -// { -// content = self.html(); -// bootbox.prompt(setTemplateTitle, function(r) -// { -// if(!r || !content) return; -// saveTemplateLink = createLink('bug', 'saveTemplate'); -// $.post(saveTemplateLink, {title:r, content:content}, function(data) -// { -// $('#tplBox').html(data); -// }); -// }); -// } -// }; -// self.clickToolbar(name, self.plugin.savetemplate.click); -// }); - /* Set template. */ function setTemplate(templateID) { @@ -112,3 +71,31 @@ function deleteTemplate(templateID) hiddenwin.location.href = createLink('bug', 'deleteTemplate', 'templateID=' + templateID); $('#tplBox' + templateID).addClass('hidden'); } + +$(function() +{ + if($('#project').val()) loadProjectRelated($('#project').val()); + $('#saveTplBtn').on('click', function() + { + var content = $('#steps').val(); + bootbox.prompt(setTemplateTitle, function(r) + { + if(!r || !content) return; + saveTemplateLink = createLink('bug', 'saveTemplate'); + $.post(saveTemplateLink, {title:r, content:content}, function(data) + { + $('#tplBox').html(data); + }); + }); + }); + + $('[data-toggle=tooltip]').tooltip(); + + // ajust style for file box + var ajustFilebox = function() + { + applyCssStyle('.fileBox > tbody > tr > td:first-child {transition: none; width: ' + ($('#contactListGroup').width() - 2) + 'px}', 'filebox') + }; + ajustFilebox(); + $(window).resize(ajustFilebox); +}); diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 783d635992..790853dcfc 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -63,7 +63,7 @@ js::set('refresh', $lang->refresh); bug->openedBuild?> - bug->allBuilds, "class='btn btn-default' onclick='loadAllBuilds()'")?> + ', "class='btn btn-default' data-toggle='tooltip' onclick='loadAllBuilds()' title='{$lang->bug->allBuilds}' style='border-left: none'")?> @@ -72,7 +72,7 @@ js::set('refresh', $lang->refresh);