fixed validation problem with new backbone
parent
37bca0d5fb
commit
7459767646
|
@ -593,7 +593,7 @@
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
var _self = this;
|
var _self = this;
|
||||||
this.model.save(this.model, {
|
this.model.save({}, {
|
||||||
success:function () {
|
success:function () {
|
||||||
app.clientList.add(_self.model);
|
app.clientList.add(_self.model);
|
||||||
app.navigate('admin/clients', {trigger:true});
|
app.navigate('admin/clients', {trigger:true});
|
||||||
|
@ -872,7 +872,7 @@
|
||||||
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
var _self = this;
|
var _self = this;
|
||||||
this.model.save(this.model, {
|
this.model.save({}, {
|
||||||
success:function () {
|
success:function () {
|
||||||
app.whiteListList.add(_self.model);
|
app.whiteListList.add(_self.model);
|
||||||
app.navigate('admin/whitelists', {trigger:true});
|
app.navigate('admin/whitelists', {trigger:true});
|
||||||
|
@ -980,7 +980,7 @@
|
||||||
|
|
||||||
var _self = this; // closures...
|
var _self = this; // closures...
|
||||||
|
|
||||||
item.save(item, {
|
item.save({}, {
|
||||||
success:function() {
|
success:function() {
|
||||||
_self.collection.add(item);
|
_self.collection.add(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue