static/publish.js
// JavaScript is enabled in their browsers.
JavaScript is enabled in their browsers.
JavaScript is enabled in their browsers .
function addSubmitSafety () {
  var section = document.getElementById('submit')
  var submit = section.getElementsByTagName('input')[0]
  var safety = document.createElement('button')
  safety.className = 'safety'
  safety.appendChild(
    document.createTextNode('Enable the Publish Button')
  )
  submit.setAttribute('disabled', true)
  safety.addEventListener('click', function (event) {
    section.removeChild(safety)
    submit.removeAttribute('disabled')
    setTimeout(addSubmitSafety, SAFETY_TIMEOUT)
    event.preventDefault()
    event.stopPropagation()
  })
  section.appendChild(safety, submit)
}
function addSubmitSafety ( ) { var section = document . getElementById ( 'submit' ) var submit = section . getElementsByTagName ( 'input' ) [ 0 ] var safety = document . createElement ( 'button' ) safety . className = 'safety' safety . appendChild ( document . createTextNode ( 'Enable the Publish Button' ) ) submit . setAttribute ( 'disabled' , true ) safety . addEventListener ( 'click' , function ( event ) { section . removeChild ( safety ) submit . removeAttribute ( 'disabled' ) setTimeout ( addSubmitSafety , SAFETY_TIMEOUT ) event . preventDefault ( ) event . stopPropagation ( ) } ) section . appendChild ( safety , submit ) }
JavaScript is enabled in their browsers.
JavaScript is enabled in their browsers .