Added processing icon for entity_actions anchors

This commit is contained in:
Sarven Capadisli 2009-11-27 15:00:39 +01:00
parent e96bba0542
commit 35f2239ce4
3 changed files with 7 additions and 2 deletions

View File

@ -366,6 +366,7 @@ var SN = { // StatusNet
NDM = $('.entity_send-a-message a'); NDM = $('.entity_send-a-message a');
NDM.attr({'href':NDM.attr('href')+'&ajax=1'}); NDM.attr({'href':NDM.attr('href')+'&ajax=1'});
NDM.bind('click', function() { NDM.bind('click', function() {
$(this).addClass('processing');
var NDMF = $('.entity_send-a-message form'); var NDMF = $('.entity_send-a-message form');
if (NDMF.length === 0) { if (NDMF.length === 0) {
$.get(NDM.attr('href'), null, function(data) { $.get(NDM.attr('href'), null, function(data) {
@ -384,6 +385,8 @@ var SN = { // StatusNet
NDMF.show(); NDMF.show();
$('.entity_send-a-message textarea').focus(); $('.entity_send-a-message textarea').focus();
} }
$(this).removeClass('processing');
return false; return false;
}); });
} }

View File

@ -157,7 +157,8 @@ background-repeat:no-repeat;
background-color:transparent; background-color:transparent;
} }
#wrap form.processing input.submit { #wrap form.processing input.submit,
.entity_actions a.processing {
background:#FFFFFF url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%; background:#FFFFFF url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
cursor:wait; cursor:wait;
text-indent:-9999px; text-indent:-9999px;

View File

@ -157,7 +157,8 @@ background-repeat:no-repeat;
background-color:transparent; background-color:transparent;
} }
#wrap form.processing input.submit { #wrap form.processing input.submit,
.entity_actions a.processing {
background:#FFFFFF url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%; background:#FFFFFF url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
cursor:wait; cursor:wait;
text-indent:-9999px; text-indent:-9999px;