         else
           @updateUserViewPreferences(null,null,theme)
       )
-
+  
   updateUserViewPreferences: (@bedsheet_id,@scrolling,@theme)->
     $.ajax {
       type: 'POST'

     }



  
  updateEntryBedsheetHiddenImageId: (bedsheet_id)->
    $('#entry_view_preference_attributes_image_id').val(bedsheet_id)
  

            $('#entry_view_preference_attributes_image_id').val($(event.currentTarget).data('id'))
          else if $('#show_entry_mode').attr('name')?
            # @updateEntryBedsheet($('#showEntry').data('id'),$(event.currentTarget).data('id'))   
            # @updateEntryViewPreferences($('#showEntry').data('id'),$(event.currentTarget).data('id'),null,null)  
          else
            # @updateUserBedsheet($(event.currentTarget).data('id'))
            # @updateUserViewPreferences($(event.currentTarget).data('id'),null,null)
        )
        
  
    # trigger scrolling changes
    $('#scroll,#fixed').click (event) ->
      @scrollClickHandler((event) =>
        entry_id = $('#showEntry').data('id')
