fix feedback
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
oMyThoughts.pageInit = function(asHash, bFirstPage) {
|
||||
oEditor = new Editor('#read', true);
|
||||
oEditor.open(asHash.items[0]);
|
||||
}
|
||||
};
|
||||
|
||||
oMyThoughts.onSamePageMove = function(asHash) {
|
||||
return true;
|
||||
}
|
||||
$('#read').empty();
|
||||
self.pageInit(self.getHash());
|
||||
return false;
|
||||
};
|
||||
</script>
|
||||
@@ -16,15 +16,15 @@
|
||||
|
||||
oMyThoughts.onFeedback = function(sType, sMsg)
|
||||
{
|
||||
var $Feedback = $('#edi_feedback');
|
||||
$Feedback
|
||||
.stop()
|
||||
.fadeOut($Feedback.is(':empty')?0:'fast', function(){
|
||||
var $Feedback = $('#write_feedback').stop();
|
||||
if(sMsg != $Feedback.find('span').text()) {
|
||||
$Feedback.fadeOut($Feedback.is(':empty')?0:'fast', function(){
|
||||
$(this)
|
||||
.empty()
|
||||
.append($('<span>', {'class':sType}).text(sMsg))
|
||||
.fadeIn('fast');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
oMyThoughts.onQuitPage = function()
|
||||
|
||||
Reference in New Issue
Block a user