2014-10-20 16:48:07 -04:00
|
|
|
class @Wikis
|
2013-05-02 07:36:53 -04:00
|
|
|
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
|