diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-26 22:41:58 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-26 22:41:58 +0400 |
commit | 7d56a51bdcffa2413a68779e4899e8139c1ba4f9 (patch) | |
tree | 7dcb80148a424b21cd4791ca22da59819f5be0d3 /app/assets/javascripts/application.js | |
parent | f1c534c68eecf68c72ce401e30c3d7d846052885 (diff) |
Js refactoring and ajax animation replaced
Diffstat (limited to 'app/assets/javascripts/application.js')
-rw-r--r-- | app/assets/javascripts/application.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 85fb8e785ac..042bca91897 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -70,3 +70,7 @@ function showMenu() { function resetMenu() { $(this).removeClass("hover"); } + +function slugify(text) { + return text.replace(/[^-a-zA-Z0-9]+/g, '_').toLowerCase(); +} |