Move Logger and *withPrefix javascript into a common location

This commit is contained in:
Calen Pennington
2012-07-19 14:06:53 -04:00
parent 87ce82570d
commit 8481937f59
9 changed files with 39 additions and 18 deletions

View File

@@ -1,8 +1,4 @@
jQuery.postWithPrefix = (url, data, callback, type) ->
$.post("#{CMS.prefix}#{url}", data, callback, type)
jQuery.getWithPrefix = (url, data, callback, type) ->
$.get("#{CMS.prefix}#{url}", data, callback, type)
AjaxPrefix.addAjaxPrefix(jQuery, -> CMS.prefix)
@CMS =
Models: {}