Guest User

Untitled

a guest
Oct 7th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ ->
  2.     map = new MappingInterface "#mapping-interface"
  3.     input_timeout = null
  4.  
  5.     $("[type=reset]").click (e) ->
  6.         e.preventDefault()
  7.         @closest("form").resetForm()
  8.  
  9.     $('#Form_MapSearchForm').entwine
  10.         toggleLoading: ->      
  11.             map.sidebar.addClass 'loading'
  12.             @find('select, input').attr 'disabled',true
  13.  
  14.         refresh: (data) ->
  15.             map.sidebar.removeClass('loading').html data.sidebar
  16.             @html $(data.form).html()
  17.             map.map.data('jMapping').update()
  18.             map.showCheckedFeatures()
  19.  
  20.         resetForm: ->
  21.             @find('select, input').val('').trigger "change"        
  22.             @submit()
  23.  
  24.         onsubmit: (e) ->
Add Comment
Please, Sign In to add comment