X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1e71d943e17f0011d65d9e92969ff2aa3b73ff31..793b39c86e9583467f1cbc41f8b1a4677d079f23:/redakcja/static/js/button_scripts.js?ds=sidebyside diff --git a/redakcja/static/js/button_scripts.js b/redakcja/static/js/button_scripts.js index ff17eea4..ef2b794d 100644 --- a/redakcja/static/js/button_scripts.js +++ b/redakcja/static/js/button_scripts.js @@ -282,6 +282,12 @@ function ScriptletCenter() done(output, move_forward, move_up); }.bind(this); + + this.scriptlets['slugify'] = function(context, params, text, move_forward, move_up, done) + { + done(slugify(text.replace(/_/g, '-')), move_forward, move_up); + }.bind(this); + } ScriptletCenter.prototype.callInteractive = function(opts) {