           @updateUserViewPreferences(null,scrolling,null)  
       )
     
-
-    
-    # set theme
+   
+    # trigger theme changes
     $('#light, #dark').click (event) ->
       @themeClickHandler((event) =>
         entry_id = $('#showEntry').data('id')

     }



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

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