vue_crud 0.1.10.3 → 0.1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vue_crud/version.rb +1 -1
- data/vendor/assets/javascripts/vue_crud.js +3 -2
- 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: e5b77252e816a72e5e150c1e7e6e061562620c1f
|
4
|
+
data.tar.gz: d90efbe43881a79f1515ca6cd5cf1b8e73356a71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6608126c26c910f51483890af1464c027c3b737687b2dc80b5249da83bd2270fe7fca7c187ea12c7d25fd9c78c9f3f959c14845f8e0a60ce65fc9a467ee8ab
|
7
|
+
data.tar.gz: e0c003e7d46134f7bd1866171c9f7a18d476fda178785640b0dfdd3cbc3bd7e95a2d010a53b90a70d09fafa7c0ec083b6f4155dd150396e0c4fa2ad9aa2f60cc
|
data/lib/vue_crud/version.rb
CHANGED
@@ -306,11 +306,11 @@ function vueCRUD_init(params = {}) {
|
|
306
306
|
updateModel: function() {
|
307
307
|
var that = this;
|
308
308
|
$.ajax({
|
309
|
+
dataType: 'json',
|
309
310
|
method: 'PATCH',
|
310
311
|
data: JSON.stringify(that.model),
|
311
312
|
url: that.info.url_prefix + '/' + that.model.ID + options.suffix + location.search,
|
312
313
|
beforeSend: function() {
|
313
|
-
console.log(JSON.stringify(that.model));
|
314
314
|
event_hub.$emit('dimmerOn');
|
315
315
|
$('.progress-bar').css('width', '0');
|
316
316
|
},
|
@@ -464,6 +464,7 @@ function vueCRUD_init(params = {}) {
|
|
464
464
|
restoreModel: function () {
|
465
465
|
var that = this;
|
466
466
|
$.ajax({
|
467
|
+
dataType: 'json',
|
467
468
|
method: 'POST',
|
468
469
|
data: JSON.stringify(that.model),
|
469
470
|
url: that.info.url_prefix + options.suffix + location.search,
|
@@ -478,11 +479,11 @@ function vueCRUD_init(params = {}) {
|
|
478
479
|
createModel: function () {
|
479
480
|
var that = this;
|
480
481
|
$.ajax({
|
482
|
+
dataType: 'json',
|
481
483
|
method: 'POST',
|
482
484
|
data: JSON.stringify(that.model),
|
483
485
|
url: that.info.url_prefix + options.suffix + location.search,
|
484
486
|
beforeSend: function() {
|
485
|
-
console.log(JSON.stringify(that.model));
|
486
487
|
event_hub.$emit('dimmerOn');
|
487
488
|
$('.progress-bar').css('width', '0');
|
488
489
|
},
|