fix feedback

This commit is contained in:
2018-11-25 11:52:05 +01:00
parent 3a53121fe2
commit 89da622919
6 changed files with 37 additions and 22 deletions

View File

@@ -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>

View File

@@ -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()