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 { ...@@ -1544,6 +1544,7 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
'defaultgroupquota' => array( 'defaultgroupquota' => array(
'title' => get_string('defaultgroupquota', 'artefact.file'), 'title' => get_string('defaultgroupquota', 'artefact.file'),
'type' => 'bytes', 'type' => 'bytes',
'class' => 'form-inline',
'defaultvalue' => $defaultgroupquota, 'defaultvalue' => $defaultgroupquota,
), ),
'updategroupquotas' => array( 'updategroupquotas' => array(
......
...@@ -146,10 +146,11 @@ jQuery(function($) { ...@@ -146,10 +146,11 @@ jQuery(function($) {
} }
function attachInputDropdown() { function attachInputDropdown() {
// Sets a new context for every .js-dropdown-group item
var context = $('.js-dropdown-group'); $('.js-dropdown-group').each(function () {
var context = $(this);
handleInputDropdown(context); handleInputDropdown(context);
})
$('.js-dropdown-group select').on('change', function(){ $('.js-dropdown-group select').on('change', function(){
var context = $(this).closest('.js-dropdown-group'); var context = $(this).closest('.js-dropdown-group');
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
&.form-group { &.form-group {
border-bottom: none; border-bottom: none;
.with-heading & { .form-control {
max-width: none;
width: 200px;
} }
} }
.with-dropdown { .with-dropdown {
...@@ -28,7 +30,7 @@ ...@@ -28,7 +30,7 @@
top: 0; top: 0;
left: 0; left: 0;
padding: 0 5px; padding: 0 5px;
width: 200px; width: 100%;
z-index: 2; z-index: 2;
float: left; float: left;
height: $input-height-base; 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