1
0
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:
Yiannis Siantos
2024-02-10 10:02:07 +00:00
committed by GitHub
parent 958ac08897
commit 429b6f7edc
2 changed files with 3 additions and 2 deletions

View File

@@ -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();

View File

@@ -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);