fixed validation problem with new backbone

pull/263/head
Justin Richer 2012-12-20 17:46:34 -05:00
parent 37bca0d5fb
commit 7459767646
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }