Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepending a tile is not working #71

Open
janasathya opened this issue Mar 1, 2019 · 0 comments
Open

Prepending a tile is not working #71

janasathya opened this issue Mar 1, 2019 · 0 comments

Comments

@janasathya
Copy link

My code is below.

Expected result : prepending a tile.
Current result : appening a tile instead of prepending.

Any suggestion will be appriciated.

Thanks,
Jana

<!doctype html>

<title>Analytics dashboard</title>
<!-- <script src="dist/js/jquery.min.js"></script> -->
<script src="dist/js/jquery.js"></script>
<script src="dist/js/jquery.gridly.js"></script>
<script>
	$('.gridly').gridly();

	var brick = "<div class='brick small grid-item-alt'></div>";
	$(document).on("click", ".search-hidden", function() {
		$('.gridly').prepend(brick);
		return $('.gridly').gridly();
	});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant