Disabled attribute added on click
This commit is contained in:
parent
4d1ac24b8c
commit
33f67afd56
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue