Skip to content

Commit

Permalink
Merge pull request #309 from newpanjing/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
newpanjing authored Sep 17, 2020
2 parents a646823 + 41a0d3d commit c6a64ea
Show file tree
Hide file tree
Showing 253 changed files with 106,261 additions and 109,980 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Django Admin默认界面设计语言存在着的一些不足,比如色彩单
## QQ群
+ QQ群号:873469913

<img src='https://github.com/newpanjing/simpleui/raw/master/images/QQ%E7%BE%A4.jpg' width='200'>
<img src='https://github.com/newpanjing/simpleui/raw/master/images/QQ2.jpg' width='200'>


## 文档
Expand Down
2 changes: 1 addition & 1 deletion doc/en/README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ simpleui Characteristics
## QQ Group
+ QQ group : 873469913

<img src='https://github.com/newpanjing/simpleui/raw/master/images/QQ%E7%BE%A4.jpg' width='200'>
<img src='https://github.com/newpanjing/simpleui/raw/master/images/QQ2.jpg' width='200'>


## Document
Expand Down
Binary file added images/QQ2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion simpleui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def get_version():
return '2020.8'
return '2020.9'
10 changes: 10 additions & 0 deletions simpleui/static/admin/js/admin/RelatedObjectLookups.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
var o = new Option(newRepr, newId);
SelectBox.add_to_cache(toId, o);
SelectBox.redisplay(toId);

if (SelectBox.add) {
SelectBox.add(name, newRepr, newId)
}
}
win.close();
}
Expand All @@ -108,6 +112,9 @@
this.value = newId;
}
});
if(SelectBox.change){
SelectBox.change(id, newRepr, newId,objId);
}
selects.next().find('.select2-selection__rendered').each(function () {
// The element can have a clear button as a child.
// Use the lastChild to modify only the displayed value.
Expand All @@ -126,6 +133,9 @@
$(this).remove();
}
}).trigger('change');
if(SelectBox.remove){
SelectBox.remove(id,objId);
}
win.close();
}

Expand Down
Loading

0 comments on commit c6a64ea

Please sign in to comment.