debian-mirror-gitlab/app/assets/javascripts/wikis.js.coffee

10 lines
244 B
CoffeeScript
Raw Normal View History

2015-04-26 12:48:37 +05:30
class @Wikis
2014-09-02 18:07:02 +05:30
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