fixed validation problem with new backbone

pull/263/head
Justin Richer 12 years ago
parent 37bca0d5fb
commit 7459767646

@ -593,7 +593,7 @@
if (valid) {
var _self = this;
this.model.save(this.model, {
this.model.save({}, {
success:function () {
app.clientList.add(_self.model);
app.navigate('admin/clients', {trigger:true});
@ -872,7 +872,7 @@
if (valid) {
var _self = this;
this.model.save(this.model, {
this.model.save({}, {
success:function () {
app.whiteListList.add(_self.model);
app.navigate('admin/whitelists', {trigger:true});
@ -980,7 +980,7 @@
var _self = this; // closures...
item.save(item, {
item.save({}, {
success:function() {
_self.collection.add(item);
}

Loading…
Cancel
Save