diff --git a/desktop/apps/desktop.buddylist/desktop.buddylist.js b/desktop/apps/desktop.buddylist/desktop.buddylist.js index 397cb46..cc762ba 100644 --- a/desktop/apps/desktop.buddylist/desktop.buddylist.js +++ b/desktop/apps/desktop.buddylist/desktop.buddylist.js @@ -39,8 +39,16 @@ desktop.buddylist.load = function desktopLoadBuddyList (params, next) { $('#window_buddylist').css('left', 777); $('#window_buddylist').css('top', 66); - let key = desktop.buddylist.positiveAffirmations[Math.floor(Math.random() * desktop.buddylist.positiveAffirmations.length)]; - $('.positiveAffirmation').html(key) + + function updatePositiveAffirmation () { + let key = desktop.buddylist.positiveAffirmations[Math.floor(Math.random() * desktop.buddylist.positiveAffirmations.length)]; + $('.positiveAffirmation').html(key) + } + updatePositiveAffirmation(); + + $('.positiveAffirmation').on('click', function(){ + updatePositiveAffirmation(); + }) $('.sendMessageForm').on('submit', function(){ return false; diff --git a/desktop/assets/css/desktop.css b/desktop/assets/css/desktop.css index d506cb6..11e2563 100755 --- a/desktop/assets/css/desktop.css +++ b/desktop/assets/css/desktop.css @@ -1166,4 +1166,5 @@ iframe { text-align: center; padding-right: 16px; padding-top: 8px; + cursor: pointer; } \ No newline at end of file