Skip to content

Commit

Permalink
fix(gridster): the preview holder should not always use li
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
atesgoral authored and vieron committed Oct 26, 2013
1 parent 31fd8d6 commit 1ade74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 1ade74e

Please sign in to comment.