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:
Ates Goral
2013-08-14 16:25:59 -04:00
committed by vieron
parent 31fd8d6ba8
commit 1ade74e239

View File

@ -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'),