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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f876c6d554cc8a8d7a13f77570930db1c099d71
4
- data.tar.gz: a87dac499a723925956eeb3a384c4722f62bbef2
3
+ metadata.gz: 93506cd1ee27df759ef69a8808ed6cc72bcedf12
4
+ data.tar.gz: 4f983bde86e89ca3503d86b466ee6658b63bf501
5
5
  SHA512:
6
- metadata.gz: c18e5f2ce378820e6cc94c11ed8b5d3905178b7615aba90a3e1e482cc8cf3a6fbc91838b84b2b41c8dcc2726c5d8b70f4a1894543d194ea27d89304cd11e71c5
7
- data.tar.gz: 5a463b0a49d63bea07ec5b074b777eac1596991f2755112724184b73d786ca9ec7807614fe4b5eb1ea04ae7e07798e495424877d49702511b59f23dbbe64eae1
6
+ metadata.gz: e3ca5dd5570c3430ec2c371b0052f6899db7d3fa9d694aab8a8f1a47e81d4ba40ab04758c2a07ce1af82f476cf24c14a5dd048ec8fc0dd9062ee4256d73c9646
7
+ data.tar.gz: 625f0be42e00de4a547d434ae7f497dac1d05fe150d9283b5d2d9f470895f45c3735f230784b53588dc34e3f883b2d106c60f92893e3b16ccef2d8804c21ffe6
@@ -1,3 +1,3 @@
1
1
  module VueCrud
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -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;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vue_crud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Chiang