Disabled attribute added on click

This commit is contained in:
Saqib Razzaq 2016-04-13 11:19:25 +05:00
parent 4d1ac24b8c
commit 33f67afd56

View file

@ -230,6 +230,7 @@ function homePageVideos(qlist_items) {
beforeSend: function() {
// setting a timeout
$(main_object).attr('disabled','disabled');
$(main_object).text("Loading..");
if (loadType != 'count') {
if (loadMode == 'featured') {
@ -246,6 +247,7 @@ function homePageVideos(qlist_items) {
},
success: function(data) {
$(main_object).removeAttr('disabled');
$(main_object).text("Load More");
if (data.length < 10) {
$(main_object).remove();