gitlab-org--gitlab-foss/app/assets/javascripts/wikis.js.coffee
2013-08-08 11:40:42 +03:00

12 lines
260 B
CoffeeScript

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
@Wikis = Wikis