Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#load-community').click(function (ev) {
- ev.preventDefault();
- $(this).addClass("disabled");
- var l = Ladda.create(this);
- var form = $('#featured-form');
- var $container = $('#community-grid');
- $.ajax({
- type: "GET",
- cache: false,
- url: "/Home/GetFeatured",
- data: form.serialize(),
- beforeSend: function(){
- l.start();
- },
- success: function (response) {
- var $container = $('#community-grid');
- newItems = $(response);
- $container.append(newItems).isotope('appended', newItems);
- var startIndex = $("#featured-form input[name='FeaturedStartIndex']");
- var newValue = startIndex.val() + 8;
- startIndex.val(newValue);
- l.stop();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement