Commit d429c16c authored by Liam Sharpe's avatar Liam Sharpe Committed by Pat Kira
Browse files

Bug #1591596 - Fixed the text not showing on quotas dropdowns

behatnotneeded

Change-Id: Ia392c12ca0ea2e135ff30da3be8d2bfa37fc0425
parent 710108cf
......@@ -1544,6 +1544,7 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
'defaultgroupquota' => array(
'title' => get_string('defaultgroupquota', 'artefact.file'),
'type' => 'bytes',
'class' => 'form-inline',
'defaultvalue' => $defaultgroupquota,
),
'updategroupquotas' => array(
......
......@@ -146,10 +146,11 @@ jQuery(function($) {
}
function attachInputDropdown() {
var context = $('.js-dropdown-group');
handleInputDropdown(context);
// Sets a new context for every .js-dropdown-group item
$('.js-dropdown-group').each(function () {
var context = $(this);
handleInputDropdown(context);
})
$('.js-dropdown-group select').on('change', function(){
var context = $(this).closest('.js-dropdown-group');
......
......@@ -20,7 +20,9 @@
&.form-group {
border-bottom: none;
.with-heading & {
.form-control {
max-width: none;
width: 200px;
}
}
.with-dropdown {
......@@ -28,7 +30,7 @@
top: 0;
left: 0;
padding: 0 5px;
width: 200px;
width: 100%;
z-index: 2;
float: left;
height: $input-height-base;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment