spine-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -3
- data/build/update.sh +9 -0
- data/lib/generators/spine/model/model_generator.rb +1 -1
- data/lib/generators/spine/new/new_generator.rb +14 -14
- data/lib/generators/spine/scaffold/scaffold_generator.rb +5 -5
- data/lib/generators/spine/scaffold/templates/controller.coffee.erb +1 -1
- data/lib/spine/generators.rb +5 -5
- data/lib/spine/rails/version.rb +2 -2
- data/spine-rails.gemspec +2 -1
- data/vendor/assets/javascripts/spine.coffee +640 -0
- data/vendor/assets/javascripts/spine/ajax.coffee +237 -0
- data/vendor/assets/javascripts/spine/list.coffee +43 -0
- data/vendor/assets/javascripts/spine/local.coffee +16 -0
- data/vendor/assets/javascripts/spine/manager.coffee +84 -0
- data/vendor/assets/javascripts/spine/relation.coffee +136 -0
- data/vendor/assets/javascripts/spine/route.coffee +148 -0
- metadata +41 -17
- data/app/assets/javascripts/json2.js +0 -485
- data/app/assets/javascripts/spine.js +0 -808
- data/app/assets/javascripts/spine/ajax.js +0 -290
- data/app/assets/javascripts/spine/list.js +0 -70
- data/app/assets/javascripts/spine/local.js +0 -28
- data/app/assets/javascripts/spine/manager.js +0 -154
- data/app/assets/javascripts/spine/relation.js +0 -222
- data/app/assets/javascripts/spine/route.js +0 -197
- data/app/assets/javascripts/spine/tabs.js +0 -66
- data/app/assets/javascripts/spine/tmpl.js +0 -22
@@ -1,22 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
var $;
|
3
|
-
|
4
|
-
$ = typeof jQuery !== "undefined" && jQuery !== null ? jQuery : require("jqueryify");
|
5
|
-
|
6
|
-
$.fn.item = function() {
|
7
|
-
var item;
|
8
|
-
item = $(this);
|
9
|
-
item = item.data("item") || (typeof item.tmplItem === "function" ? item.tmplItem().data : void 0);
|
10
|
-
if (item != null) if (typeof item.reload === "function") item.reload();
|
11
|
-
return item;
|
12
|
-
};
|
13
|
-
|
14
|
-
$.fn.forItem = function(item) {
|
15
|
-
return this.filter(function() {
|
16
|
-
var compare;
|
17
|
-
compare = $(this).item();
|
18
|
-
return (typeof item.eql === "function" ? item.eql(compare) : void 0) || item === compare;
|
19
|
-
});
|
20
|
-
};
|
21
|
-
|
22
|
-
}).call(this);
|