Sha256: c1dc25898c28a1a66b806ba6e539eb5a780c92192aa83f186f0cbb79512e6401
Contents?: true
Size: 915 Bytes
Versions: 8
Compression:
Stored size: 915 Bytes
Contents
#= require_tree ./lib # require_tree ./lib_old #= require _page #= require _link #= require _form class Wiselinks constructor: ($target = $('body'), @options = {}) -> this._try_jquery() @options = $.extend(this._defaults(), @options) if this.enabled() if @options.disable_suid then History.options.disableSuid = true @page = new _Wiselinks.Page($target, @options) enabled: -> !History.emulated.pushState || @options.html4 == true load: (url, target, render = 'template') -> @page.load(url, target, render) reload: () -> @page.reload() _defaults: -> disable_suid: true html4: true html4_root_path: '/' html4_normalize_path: true target_missing: null assets_digest: $("meta[name='assets-digest']").attr("content") _try_jquery: -> throw new Error("[Wiselinks] jQuery is not loaded") unless window.jQuery? window.Wiselinks = Wiselinks
Version data entries
8 entries across 8 versions & 2 rubygems