fullstack-admin 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Fullstack Admin Change Log
2
2
 
3
- ## 0.2.14
3
+ ## 0.2.21
4
+
5
+ JQuery 1.9 and compatibility issues with plugins solved using jquery-migrate
6
+ - Added jquery-migrate
7
+ - Updates fullstack-ckeditor to use attachments an pictures again
8
+
9
+ ## 0.2.20
4
10
 
5
11
  Mainly a refactor of js/css to clean up the unessential.
6
12
 
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ gem 'rails', "~> 3.2"
8
8
  gem "fullstack", '~> 0.1.27'
9
9
  gem "bootstrap-helpers", '~> 0.1.9'
10
10
  gem "chosen-rails"
11
- gem "fullstack-ckeditor", '~> 0.1.2'
11
+ gem "fullstack-ckeditor", '~> 0.1.3'
12
12
  gem "facebox-rails"
13
13
  gem "formtastic-bootstrap"
14
14
  gem "meta_search"
data/Gemfile.lock CHANGED
@@ -107,7 +107,7 @@ GEM
107
107
  remotipart
108
108
  resource-presentation-helpers
109
109
  squeel
110
- fullstack-ckeditor (0.1.2)
110
+ fullstack-ckeditor (0.1.3)
111
111
  rails
112
112
  git (1.2.5)
113
113
  has-attached (0.2.5)
@@ -247,7 +247,7 @@ DEPENDENCIES
247
247
  facebox-rails
248
248
  formtastic-bootstrap
249
249
  fullstack (~> 0.1.27)
250
- fullstack-ckeditor (~> 0.1.2)
250
+ fullstack-ckeditor (~> 0.1.3)
251
251
  has-attached (~> 0.2.5)
252
252
  jeweler
253
253
  meta_search
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.20
1
+ 0.2.21
@@ -1,4 +1,10 @@
1
1
  #= require jquery
2
+
3
+ # TODO: update plugins like jquery.validate when they release a version compatible with Jquery 1.9
4
+ # and then remove this line along with the plugin file:
5
+
6
+ #= require jquery-migrate-to-1.9
7
+
2
8
  #= require jquery_ujs
3
9
  #= require jquery-ui
4
10
  #= require_tree ./admin/lib
@@ -0,0 +1,3 @@
1
+ /*! jQuery Migrate v1.0.0 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
2
+ jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){"use strict";function r(n){o[n]||(o[n]=!0,e.migrateWarnings.push(n),t.console&&console.warn&&!e.migrateMute&&console.warn("JQMIGRATE: "+n))}function a(t,a,o,i){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(i),o},set:function(e){r(i),o=e}}),n}catch(u){}e._definePropertyBroken=!0,t[a]=o}var o={};e.migrateWarnings=[],e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var i={},u=e.attr,s=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},d=/^(?:input|button)$/i,l=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i,"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,i){var s=a.toLowerCase(),c=t&&t.nodeType;return i&&(r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!l.test(c)&&e.isFunction(e.fn[a]))?e(t)[a](o):("type"===a&&o!==n&&d.test(t.nodeName)&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[s]&&p.test(s)&&(e.attrHooks[s]={get:function(t,r){var a,o=e.prop(t,r);return o===!0||"boolean"!=typeof o&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(s)&&r("jQuery.fn.attr("+s+") may use property instead of attribute")),u.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?s.apply(this,arguments):("input"!==n&&"option"!==n&&r("property-based jQuery.fn.attr('value') is deprecated"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("property-based jQuery.fn.attr('value', val) is deprecated"),e.value=t,n)}};var g,h,m=e.fn.init,v=/^(?:.*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;e.fn.init=function(t,n,a){var o;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=v.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?m.call(this,e.parseHTML(e.trim(t),n,!0),n,a):m.apply(this,arguments)},e.fn.init.prototype=e.fn,e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h,a(e,"browser",h,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t};var y=e.fn.data;e.fn.data=function(t){var a,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?y.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};var b=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack,j=e.buildFragment;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,o,i){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var u,s,c,d,l=[];if(e.merge(l,e.buildFragment(t,a).childNodes),o)for(c=function(e){return!e.type||b.test(e.type)?i?i.push(e.parentNode?e.parentNode.removeChild(e):e):o.appendChild(e):n},u=0;null!=(s=l[u]);u++)e.nodeName(s,"script")&&c(s)||(o.appendChild(s),s.getElementsByTagName!==n&&(d=e.grep(e.merge([],s.getElementsByTagName("script")),c),l.splice.apply(l,[u+1,0].concat(d)),u+=d.length));return l}),e.buildFragment=function(t,n,o,i){var u,s="jQuery.buildFragment() is deprecated";n=n||document,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n;try{u=j.call(e,t,n,o,i)}catch(c){u=j.call(e,t,n.nodeType?[n]:n[0],o,i),r(s)}return u.fragment||(a(u,"fragment",u,s),a(u,"cacheable",!1,s)),u};var Q=e.event.add,x=e.event.remove,k=e.event.trigger,C=e.fn.toggle,N=e.fn.live,T=e.fn.die,H="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=RegExp("\\b(?:"+H+")\\b"),F=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(F.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(F,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,o){e!==document&&M.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,o)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return C.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,o=t.guid||e.guid++,i=0,u=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%i;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(u.guid=o;a.length>i;)a[i++].guid=o;return this.click(u)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),N?N.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),T?T.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return!n&!M.test(e)&&r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(H.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
3
+ //@ sourceMappingURL=dist/jquery-migrate.min.map
@@ -0,0 +1,3 @@
1
+ body.dialog {
2
+ padding: 40px;
3
+ }
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE html>
2
+ <html lang="it">
3
+ <head>
4
+ <%= csrf_meta_tags %>
5
+ <title><%= @title %></title>
6
+ <%= stylesheet_link_tag 'admin/admin' %>
7
+ <%= yield :stylesheets %>
8
+ </head>
9
+
10
+ <body class="dialog">
11
+ <% [:notice, :error, :alert].each do |sym| %>
12
+ <% if flash[sym] %>
13
+ <div class="alert alert-<%= sym %>">
14
+ <%= flash[sym] %>
15
+ <% flash.discard(sym) %>
16
+ </div>
17
+ <% end %>
18
+ <% end %>
19
+
20
+ <div class="container">
21
+ <div class="content">
22
+ <%= yield %>
23
+ </div>
24
+ </div>
25
+
26
+ <%= javascript_include_tag 'admin/admin' %>
27
+ <%= yield :javascripts %>
28
+ </body>
29
+ </html>
30
+
@@ -0,0 +1,4 @@
1
+ Fullstack::Ckeditor.setup do |config|
2
+ config.picture_class = Photo
3
+ config.picture_attachment = "image"
4
+ end
@@ -22,6 +22,9 @@ it:
22
22
  upload: "Carica"
23
23
  ago: "fa"
24
24
  ok: "Ok"
25
+ choose: "Scegli"
26
+ select: "Seleziona"
27
+ pick: "Scegli"
25
28
  manual_entry: "Inserimento manuale"
26
29
  this_record_contains_some_errors: "Questa linea contiene alcuni errori"
27
30
  new_record: "nuovo"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-admin"
8
- s.version = "0.2.20"
8
+ s.version = "0.2.21"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
12
- s.date = "2013-01-22"
12
+ s.date = "2013-01-23"
13
13
  s.description = "Administration interface framework for fullstack"
14
14
  s.email = "maurizio.cas@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -45,7 +45,6 @@ Gem::Specification.new do |s|
45
45
  "app/assets/javascripts/fullstack/admin.js.coffee",
46
46
  "app/assets/javascripts/fullstack/admin/lib/ajax-chosen.js",
47
47
  "app/assets/javascripts/fullstack/admin/lib/bootstrap.min.js",
48
- "app/assets/javascripts/fullstack/admin/lib/bootstrap_confirm_modal.js.coffee",
49
48
  "app/assets/javascripts/fullstack/admin/lib/combobox.js",
50
49
  "app/assets/javascripts/fullstack/admin/lib/jquery.noty.js",
51
50
  "app/assets/javascripts/fullstack/admin/lib/jquery.tagsinput.js",
@@ -64,6 +63,7 @@ Gem::Specification.new do |s|
64
63
  "app/assets/javascripts/fullstack/admin/src/prevent_submit_on_enter.js.coffee",
65
64
  "app/assets/javascripts/fullstack/admin/src/sortable.js.coffee",
66
65
  "app/assets/javascripts/fullstack/admin/src/uploads.js.coffee",
66
+ "app/assets/javascripts/jquery-migrate-to-1.9.js",
67
67
  "app/assets/stylesheets/fullstack/admin.css",
68
68
  "app/assets/stylesheets/fullstack/admin/lib/bootstrap-overrides.css",
69
69
  "app/assets/stylesheets/fullstack/admin/lib/bootstrap.min.css",
@@ -71,6 +71,7 @@ Gem::Specification.new do |s|
71
71
  "app/assets/stylesheets/fullstack/admin/lib/jquery.noty.css",
72
72
  "app/assets/stylesheets/fullstack/admin/lib/jquery.tagsinput.css",
73
73
  "app/assets/stylesheets/fullstack/admin/src/ajax-loading.css",
74
+ "app/assets/stylesheets/fullstack/admin/src/dialog.css",
74
75
  "app/assets/stylesheets/fullstack/admin/src/facebox.css",
75
76
  "app/assets/stylesheets/fullstack/admin/src/forms.css",
76
77
  "app/assets/stylesheets/fullstack/admin/src/globals.css",
@@ -130,7 +131,9 @@ Gem::Specification.new do |s|
130
131
  "app/views/kaminari/_paginator.html.erb",
131
132
  "app/views/kaminari/_prev_page.html.erb",
132
133
  "app/views/layouts/admin.html.erb",
134
+ "app/views/layouts/admin/dialog.html.erb",
133
135
  "app/views/layouts/login.html.erb",
136
+ "config/initializers/ckeditor_setup.rb",
134
137
  "config/initializers/formtastic_bootstrap_timeish_hack.rb",
135
138
  "config/locales/devise.en.yml",
136
139
  "config/locales/devise.views.en.yml",
@@ -186,7 +189,7 @@ Gem::Specification.new do |s|
186
189
  s.add_runtime_dependency(%q<fullstack>, ["~> 0.1.27"])
187
190
  s.add_runtime_dependency(%q<bootstrap-helpers>, ["~> 0.1.9"])
188
191
  s.add_runtime_dependency(%q<chosen-rails>, [">= 0"])
189
- s.add_runtime_dependency(%q<fullstack-ckeditor>, ["~> 0.1.2"])
192
+ s.add_runtime_dependency(%q<fullstack-ckeditor>, ["~> 0.1.3"])
190
193
  s.add_runtime_dependency(%q<facebox-rails>, [">= 0"])
191
194
  s.add_runtime_dependency(%q<formtastic-bootstrap>, [">= 0"])
192
195
  s.add_runtime_dependency(%q<meta_search>, [">= 0"])
@@ -199,7 +202,7 @@ Gem::Specification.new do |s|
199
202
  s.add_dependency(%q<fullstack>, ["~> 0.1.27"])
200
203
  s.add_dependency(%q<bootstrap-helpers>, ["~> 0.1.9"])
201
204
  s.add_dependency(%q<chosen-rails>, [">= 0"])
202
- s.add_dependency(%q<fullstack-ckeditor>, ["~> 0.1.2"])
205
+ s.add_dependency(%q<fullstack-ckeditor>, ["~> 0.1.3"])
203
206
  s.add_dependency(%q<facebox-rails>, [">= 0"])
204
207
  s.add_dependency(%q<formtastic-bootstrap>, [">= 0"])
205
208
  s.add_dependency(%q<meta_search>, [">= 0"])
@@ -213,7 +216,7 @@ Gem::Specification.new do |s|
213
216
  s.add_dependency(%q<fullstack>, ["~> 0.1.27"])
214
217
  s.add_dependency(%q<bootstrap-helpers>, ["~> 0.1.9"])
215
218
  s.add_dependency(%q<chosen-rails>, [">= 0"])
216
- s.add_dependency(%q<fullstack-ckeditor>, ["~> 0.1.2"])
219
+ s.add_dependency(%q<fullstack-ckeditor>, ["~> 0.1.3"])
217
220
  s.add_dependency(%q<facebox-rails>, [">= 0"])
218
221
  s.add_dependency(%q<formtastic-bootstrap>, [">= 0"])
219
222
  s.add_dependency(%q<meta_search>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-22 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 0.1.2
85
+ version: 0.1.3
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 0.1.2
93
+ version: 0.1.3
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: facebox-rails
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -239,7 +239,6 @@ files:
239
239
  - app/assets/javascripts/fullstack/admin.js.coffee
240
240
  - app/assets/javascripts/fullstack/admin/lib/ajax-chosen.js
241
241
  - app/assets/javascripts/fullstack/admin/lib/bootstrap.min.js
242
- - app/assets/javascripts/fullstack/admin/lib/bootstrap_confirm_modal.js.coffee
243
242
  - app/assets/javascripts/fullstack/admin/lib/combobox.js
244
243
  - app/assets/javascripts/fullstack/admin/lib/jquery.noty.js
245
244
  - app/assets/javascripts/fullstack/admin/lib/jquery.tagsinput.js
@@ -258,6 +257,7 @@ files:
258
257
  - app/assets/javascripts/fullstack/admin/src/prevent_submit_on_enter.js.coffee
259
258
  - app/assets/javascripts/fullstack/admin/src/sortable.js.coffee
260
259
  - app/assets/javascripts/fullstack/admin/src/uploads.js.coffee
260
+ - app/assets/javascripts/jquery-migrate-to-1.9.js
261
261
  - app/assets/stylesheets/fullstack/admin.css
262
262
  - app/assets/stylesheets/fullstack/admin/lib/bootstrap-overrides.css
263
263
  - app/assets/stylesheets/fullstack/admin/lib/bootstrap.min.css
@@ -265,6 +265,7 @@ files:
265
265
  - app/assets/stylesheets/fullstack/admin/lib/jquery.noty.css
266
266
  - app/assets/stylesheets/fullstack/admin/lib/jquery.tagsinput.css
267
267
  - app/assets/stylesheets/fullstack/admin/src/ajax-loading.css
268
+ - app/assets/stylesheets/fullstack/admin/src/dialog.css
268
269
  - app/assets/stylesheets/fullstack/admin/src/facebox.css
269
270
  - app/assets/stylesheets/fullstack/admin/src/forms.css
270
271
  - app/assets/stylesheets/fullstack/admin/src/globals.css
@@ -324,7 +325,9 @@ files:
324
325
  - app/views/kaminari/_paginator.html.erb
325
326
  - app/views/kaminari/_prev_page.html.erb
326
327
  - app/views/layouts/admin.html.erb
328
+ - app/views/layouts/admin/dialog.html.erb
327
329
  - app/views/layouts/login.html.erb
330
+ - config/initializers/ckeditor_setup.rb
328
331
  - config/initializers/formtastic_bootstrap_timeish_hack.rb
329
332
  - config/locales/devise.en.yml
330
333
  - config/locales/devise.views.en.yml
@@ -380,7 +383,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
380
383
  version: '0'
381
384
  segments:
382
385
  - 0
383
- hash: -3729535910189114423
386
+ hash: 4459023807314415861
384
387
  required_rubygems_version: !ruby/object:Gem::Requirement
385
388
  none: false
386
389
  requirements:
@@ -1,29 +0,0 @@
1
- bootStrapConfirmModal = (message, element) ->
2
- d = $("#modal-confirm")
3
- $("#modal-confirm div.modal-body p").html message
4
- $("#modal-confirm #modal-accept").click (e) ->
5
- d.modal "hide"
6
- $.rails.handleLink element
7
- false
8
- d.modal()
9
-
10
- $(document).ready ->
11
- $("body").append "<div id=\"modal-confirm\" class=\"modal modal-dialog hide fade\"><div class=\"modal-header\"><a href=\"#\" class=\"close\" data-dismiss=\"modal\">×</a><h3>Conferma</h3></div><div class=\"modal-body\"><p class=\"confirm-message\"></p></div><div class=\"modal-footer\"><a href=\"#\" class=\"btn\" data-dismiss=\"modal\">Annulla</a><a href=\"#\" class=\"btn btn-primary\" id=\"modal-accept\">Ok</a></div></div>" if $("#rails-confirm-modal").length is 0
12
- $.rails.confirm = (message, element) ->
13
- bootStrapConfirmModal message, element
14
-
15
- $.rails.allowAction = (element) ->
16
- message = element.data("confirm")
17
- answer = false
18
- callback = undefined
19
- return true unless message
20
- if $.rails.fire(element, "confirm")
21
- answer = $.rails.confirm(message, element)
22
- callback = $.rails.fire(element, "confirm:complete", [ answer ])
23
- answer and callback
24
-
25
- $.rails.handleLink = (link) ->
26
- if link.data("remote") isnt `undefined`
27
- $.rails.handleRemote link
28
- else $.rails.handleMethod link if link.data("method")
29
- false