Changeset 2624
- Timestamp:
- 09/06/10 11:22:51 (12 years ago)
- Location:
- plugins/commentNotifications
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/commentNotifications/_admin.js
r2608 r2624 61 61 applyChanges: function (num) { 62 62 /* 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 } 63 67 var legend = $('span a[href="comments.php"]'); 64 68 var img = $('a[href="comments.php"] img'); 65 69 var html = ""; 66 html += (parseInt(notificator.nb_comments) + parseInt(num))+ " ";70 html += nb_total + " "; 67 71 html += notificator.nb_comments > 1 ? notificator.msg.comments : notificator.msg.comment; 68 72 html += " (" + num + " "; -
plugins/commentNotifications/_define.php
r2608 r2624 17 17 'Displays notifications on menu and dashboard when new comments arrive', 18 18 'Tomtom (http://blog.zenstyle.fr/)', 19 '0.3. 2',19 '0.3.3', 20 20 'usage' 21 21 ); -
plugins/commentNotifications/_services.php
r2151 r2624 19 19 global $core; 20 20 21 $params = array( );21 $params = array('no_content' => true); 22 22 23 23 $nb_comment = $core->blog->getComments($params,true)->f(0);
Note: See TracChangeset
for help on using the changeset viewer.