 
       $http.put("/entries/update.json", entry: {id: first_entry.id, state: 'read', whole_feed: whole_feed, whole_folder: whole_folder, all_entries: all_entries})
       .success ->
+        # after marking multiple entries as read, reset the timer that updates feeds every minute
+        feedsFoldersSvc.reset_refresh_timer()
         for entry in $rootScope.entries
           entry.changing_state = false
       .error (data, status)->

    $http.put("/entries/update.json", entry: {id: entry.id, state: state})
    .success ->
      entry.changing_state = false
      read_feed feed_id if feed_id?
    .error (data, status)->
      if status == 401
        $window.location.href = '/login'


angular.module('feedbunch').service 'entrySvc',
['$rootScope', '$http', '$window', 'openEntrySvc', 'timerFlagSvc', 'unreadCountSvc',
'currentFolderSvc', 'currentFeedSvc', 'findSvc', 'readSvc', 'feedsFoldersSvc',
($rootScope, $http, $window, openEntrySvc, timerFlagSvc, unreadCountSvc,
currentFolderSvc, currentFeedSvc, findSvc, readSvc, feedsFoldersSvc)->

  #--------------------------------------------
  # PRIVATE FUNCTION - Mark a single entry as read or unread.
