vue_crud 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vue_crud/version.rb +1 -1
- data/vendor/assets/javascripts/vue_crud.js +4 -16
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93506cd1ee27df759ef69a8808ed6cc72bcedf12
|
|
4
|
+
data.tar.gz: 4f983bde86e89ca3503d86b466ee6658b63bf501
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3ca5dd5570c3430ec2c371b0052f6899db7d3fa9d694aab8a8f1a47e81d4ba40ab04758c2a07ce1af82f476cf24c14a5dd048ec8fc0dd9062ee4256d73c9646
|
|
7
|
+
data.tar.gz: 625f0be42e00de4a547d434ae7f497dac1d05fe150d9283b5d2d9f470895f45c3735f230784b53588dc34e3f883b2d106c60f92893e3b16ccef2d8804c21ffe6
|
data/lib/vue_crud/version.rb
CHANGED
|
@@ -92,19 +92,13 @@ function vue_init(params = {}) {
|
|
|
92
92
|
this.customMode = false;
|
|
93
93
|
}.bind(this));
|
|
94
94
|
event_hub.$on('toggle_modal_open', function() {
|
|
95
|
-
this.onModalOpen();
|
|
95
|
+
if(this.onModalOpen !== undefined) this.onModalOpen();
|
|
96
96
|
}.bind(this));
|
|
97
97
|
event_hub.$on('toggle_modal_close', function() {
|
|
98
|
-
this.onModalClose();
|
|
98
|
+
if(this.onModalClose !== undefined) this.onModalClose();
|
|
99
99
|
}.bind(this));
|
|
100
100
|
},
|
|
101
101
|
methods: {
|
|
102
|
-
onModalOpen: function() {
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
onModalClose: function() {
|
|
106
|
-
|
|
107
|
-
},
|
|
108
102
|
deleteModel: function () {
|
|
109
103
|
var that = this;
|
|
110
104
|
that.deleteMode = true;
|
|
@@ -201,10 +195,10 @@ function vue_init(params = {}) {
|
|
|
201
195
|
this.progress = progress;
|
|
202
196
|
}.bind(this));
|
|
203
197
|
event_hub.$on('toggle_modal_open', function() {
|
|
204
|
-
this.onModalOpen();
|
|
198
|
+
if(this.onModalOpen !== undefined) this.onModalOpen();
|
|
205
199
|
}.bind(this));
|
|
206
200
|
event_hub.$on('toggle_modal_close', function() {
|
|
207
|
-
this.onModalClose();
|
|
201
|
+
if(this.onModalClose !== undefined) this.onModalClose();
|
|
208
202
|
}.bind(this));
|
|
209
203
|
$('#form-progress').change(function(){
|
|
210
204
|
event_hub.$emit('update_progress', $(this).val());
|
|
@@ -268,12 +262,6 @@ function vue_init(params = {}) {
|
|
|
268
262
|
}
|
|
269
263
|
},
|
|
270
264
|
methods: {
|
|
271
|
-
onModalOpen: function() {
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
onModalClose: function() {
|
|
275
|
-
|
|
276
|
-
},
|
|
277
265
|
setPage: function(idx){
|
|
278
266
|
if( idx <= 0 || idx > this.totalPage ){
|
|
279
267
|
return;
|