   'use strict'
 
   PLANNED_REALISED_ACCEPTED_GAP = { intervention_doer: 1.2, intervention_tool: 1.2 , intervention_input: 1.2}
+
+  no_submit = => false
 
   E.value = (element) ->
     if element.is(":ui-selector")

          type: "PATCH"
          data: form.serialize()
          beforeSend: ->
            computing.prop 'state', 'waiting'
          error: (request, status, error) ->
            computing.prop 'state', 'ready'
            false
          success: (data, status, request) ->
            console.group('Unserialize intervention updated by ' + updaterId)

        scopeUri = scopeUri.replace(re, "$1" + newTime + "$3")
        $(item).attr("data-selector", encodeURI(scopeUri))

    _setWaiting: (form, computing) ->
      computing.prop 'state', 'waiting'
      form.on('submit', no_submit)
      form.find('.form-actions input[type="submit"]').prop 'disabled', true

    _setReady: (form, computing) ->
      computing.prop 'state', 'ready'
      form.off('submit', no_submit)
      form.find('.form-actions input[type="submit"]').prop 'disabled', false

    # Ask for a refresh of values depending on given update
    refresh: (updater, options = {}) ->
      unless updater?
