From 1ade74e239485b07e870fca44e1eafb3ff1ae283 Mon Sep 17 00:00:00 2001 From: Ates Goral Date: Wed, 14 Aug 2013 16:25:59 -0400 Subject: [PATCH] fix(gridster): the preview holder should not always use `li` Use the same element as the original widget for the preview holder. Using a
  • can cause a list item bullet to be displayed when widgets are not necessarily
  • elements. --- src/jquery.gridster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 4a2c64365..321cc0254 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -716,7 +716,7 @@ this.collision_api = this.$helper.collision( colliders, this.options.collision); - this.$preview_holder = $('
  • ', { + 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'),