mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix(gridster): the preview holder should not always use li
Use the same element as the original widget for the preview holder. Using a <li> can cause a list item bullet to be displayed when widgets are not necessarily <li> elements.
This commit is contained in:
@ -716,7 +716,7 @@
|
||||
this.collision_api = this.$helper.collision(
|
||||
colliders, this.options.collision);
|
||||
|
||||
this.$preview_holder = $('<li />', {
|
||||
this.$preview_holder = $('<' + this.$player.get(0).tagName + ' />', {
|
||||
'class': 'preview-holder',
|
||||
'data-row': this.$player.attr('data-row'),
|
||||
'data-col': this.$player.attr('data-col'),
|
||||
|
Reference in New Issue
Block a user