Remove unused showAndHide, simpleFormat, and linkify functions

Also removes redundant `unbind` call
This commit is contained in:
Robert Speicher
2015-06-02 20:32:07 -04:00
parent 39d5a4878f
commit 29626b0885
2 changed files with 0 additions and 15 deletions
@@ -49,8 +49,6 @@ window.slugify = (text) ->
window.ajaxGet = (url) ->
$.ajax({type: "GET", url: url, dataType: "script"})
window.showAndHide = (selector) ->
window.split = (val) ->
return val.split( /,\s*/ )
@@ -92,15 +90,7 @@ window.disableButtonIfAnyEmptyField = (form, form_selector, button_selector) ->
window.sanitize = (str) ->
return str.replace(/<(?:.|\n)*?>/gm, '')
window.linkify = (str) ->
exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig
return str.replace(exp,"<a href='$1'>$1</a>")
window.simpleFormat = (str) ->
linkify(sanitize(str).replace(/\n/g, '<br />'))
window.unbindEvents = ->
$(document).unbind('scroll')
$(document).off('scroll')
window.shiftWindow = ->
@@ -1,8 +1,3 @@
$.fn.showAndHide = ->
$(@).show().
delay(3000).
fadeOut()
# Disable an element and add the 'disabled' Bootstrap class
$.fn.extend disable: ->
$(@)