Skip to content

Commit 37771d7

Browse files
committed
Bug fix: delete last record from a "many" view.
1 parent 576ed35 commit 37771d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/dico/toolbar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,9 @@ return Backbone.View.extend({
712712
var opts = {
713713
success: function(){
714714
if(newModel===null || collec.length===0){
715-
that.curView.clear();
715+
if(that.curView.clear){
716+
that.curView.clear();
717+
}
716718
}else{
717719
that.model = newModel;
718720
if(!id){

0 commit comments

Comments
 (0)