mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-25 10:41:55 +02:00
Add names to inputs (#584)
Co-authored-by: Yiannis Siantos <yiannis.siantos@porism.com>
This commit is contained in:
@@ -537,7 +537,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
});
|
||||
|
||||
// select box for data sets
|
||||
this.$datasets = $('<select />').addClass(csscls('datasets-switcher')).appendTo(this.$headerRight);
|
||||
this.$datasets = $('<select />').addClass(csscls('datasets-switcher')).attr('name', 'datasets-switcher')
|
||||
.appendTo(this.$headerRight);
|
||||
this.$datasets.change(function() {
|
||||
self.dataChangeHandler(self.datasets[this.value]);
|
||||
self.showTab();
|
||||
|
@@ -344,7 +344,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
this.$list.$el.appendTo(this.$el);
|
||||
this.$toolbar = $('<div><i class="phpdebugbar-fa phpdebugbar-fa-search"></i></div>').addClass(csscls('toolbar')).appendTo(this.$el);
|
||||
|
||||
$('<input type="text" aria-label="Search" placeholder="Search" />')
|
||||
$('<input type="text" name="search" aria-label="Search" placeholder="Search" />')
|
||||
.on('change', function() { self.set('search', this.value); })
|
||||
.appendTo(this.$toolbar);
|
||||
|
||||
|
Reference in New Issue
Block a user