blob: 66757565d3aae583405e2e6ef1aebc5602cad83c (
plain)
1
2
3
4
5
6
7
8
9
|
class @Wikis
constructor: ->
$('.build-new-wiki').bind "click", ->
field = $('#new_wiki_path')
slug = field.val()
path = field.attr('data-wikis-path')
if(slug.length > 0)
location.href = path + "/" + slug
|