         type: 'PATCH'
         data:
           masked: $input.is(':checked') ? 'true' : 'false'
+        success:
+          location.reload() if changed
 
-    toggleDraftItemsVisibility: ->
+    toggleDraftItemsVisibility: (changed) ->
       $input = $(this)
       $list = $($input.data('mask-draft-items'))
       $letteredItems = $list.find('.draft-item')

      E.ledgers.toggleLetteredItemsVisibility.call($(this))

    $('input[data-mask-lettered-items]').on 'change', (e) ->
      E.ledgers.toggleLetteredItemsVisibility.call($(this))

    $('input[data-mask-draft-items]').each ->
      E.ledgers.toggleDraftItemsVisibility.call($(this))

        type: 'PATCH'
        data:
          masked: $input.is(':checked') ? 'true' : 'false'
        success:
          location.reload() if changed

) ekylibre, jQuery
