Saturday, 31 August 2013

jquery - gridster, still linking on page even after drag

jquery - gridster, still linking on page even after drag

so my problem is next. Im using gridster.js and after long researching of
stackoverlow i found a numerous similar solutions for this problem, but
again, i couldnt implement that on my issue. So the issue here is that i
want to link an ID to web-page, but only when i fully click on that box
inside of gridster. Issue is, when i move the very same box, and do a
mouseover, i still get linked on that page. Difference here is that im not
using any tags like previous guys did in their posts, so im basically
trying to link it over simple ID.
http://jsfiddle.net/tr4cU/23/`">FIDDLE LINK
also there is code here:
var gridster;
$(function() {
gridtster = $(".gridster > ul").gridster({
widget_margins: [10, 10],
widget_base_dimensions: [140, 140],
min_cols: 6
}).data('gridster');
$('#contacts').click(function () {
window.location = $(this).attr("url");
});
});

No comments:

Post a Comment