rails_backbone_generators 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a122dc44f509cd5d7a7cd6051992ab64e50c71
|
4
|
+
data.tar.gz: 8a403600cbc9b286147491f8bd36fef05b78938c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6da1b507ea0213ec7a94295abdbccffbd9998793c30b39ff235a537c863c84372c77e119e46e5e9c6d5c324c93f8281f5b355eb93ce2683236a2cbefc8b8dde
|
7
|
+
data.tar.gz: e11d638506a1b178cfb9d1b880f265449da1f0c70f7ce785d446bcf3b396d3ea08403a0e8ee82705eeb27aa69a35e638b6da37c5d2e237a00bcb00ed3b6876d5
|
@@ -3,9 +3,9 @@ class window.<%= plural_class_name %>TableView extends Backbone.View
|
|
3
3
|
|
4
4
|
initialize: =>
|
5
5
|
@views = []
|
6
|
-
@
|
7
|
-
@
|
8
|
-
@
|
6
|
+
@listenTo @collection, 'add', @add_one
|
7
|
+
@listenTo @collection, 'sync error request reset', @render
|
8
|
+
@listenTo @collection, 'search', @render
|
9
9
|
|
10
10
|
context: =>
|
11
11
|
loading: @collection.loading
|
@@ -23,7 +23,7 @@ class window.<%= plural_class_name %>TableView extends Backbone.View
|
|
23
23
|
# Instance Methods
|
24
24
|
add_one: (model) =>
|
25
25
|
view = new <%= singular_class_name %>RowView model: model
|
26
|
-
@$('
|
26
|
+
@$('tbody').append view.render().$el
|
27
27
|
@views.push view
|
28
28
|
|
29
29
|
remove_views: =>
|