Dotclear

Changeset 2624


Ignore:
Timestamp:
09/06/10 11:22:51 (12 years ago)
Author:
Tomtom33
Message:

commentNotifications 0.3.3 :

  • Fixed comment number display for dashboard icon, closes #556
  • Optimize comment number getter
Location:
plugins/commentNotifications
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/commentNotifications/_admin.js

    r2608 r2624  
    6161     applyChanges: function (num) { 
    6262          /* Changes for the dasboard */ 
     63          var nb_total = parseInt(notificator.nb_comments) + parseInt(num); 
     64          if (parseInt(notificator.nb_comments) - parseInt($.cookie(notificator.cookie)) > 0) { 
     65               nb_total = parseInt(notificator.nb_comments); 
     66          } 
    6367          var legend = $('span a[href="comments.php"]'); 
    6468          var img = $('a[href="comments.php"] img'); 
    6569          var html = ""; 
    66           html += (parseInt(notificator.nb_comments) + parseInt(num)) + " "; 
     70          html += nb_total + " "; 
    6771          html += notificator.nb_comments > 1 ? notificator.msg.comments : notificator.msg.comment; 
    6872          html += " (" + num + " "; 
  • plugins/commentNotifications/_define.php

    r2608 r2624  
    1717     'Displays notifications on menu and dashboard when new comments arrive', 
    1818     'Tomtom (http://blog.zenstyle.fr/)', 
    19      '0.3.2', 
     19     '0.3.3', 
    2020     'usage' 
    2121); 
  • plugins/commentNotifications/_services.php

    r2151 r2624  
    1919          global $core; 
    2020           
    21           $params = array(); 
     21          $params = array('no_content' => true); 
    2222           
    2323          $nb_comment = $core->blog->getComments($params,true)->f(0); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map