mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed ModelAdmin.js dropdown panel selection
This commit is contained in:
parent
5e9db043fa
commit
1553c3e69c
@ -38,10 +38,10 @@
|
||||
* Set up an onchange function to show the applicable form and hide all others
|
||||
*/
|
||||
onchange: function(e) {
|
||||
var self = this;
|
||||
this.find('option').each(function() {
|
||||
var $form = $('#'+this.val());
|
||||
if(this.val() == this.val()) $form.show();
|
||||
else $form.hide();
|
||||
var val = $(this).attr('value');
|
||||
$('#' + val)[(val == $(self).val()) ? 'show' : 'hide']();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user