mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-21 16:34:33 +00:00
[repo_file_star] modified icons and rm text feedback
This commit is contained in:
parent
50db057172
commit
882f16b74f
Binary file not shown.
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 503 B |
Binary file not shown.
Before Width: | Height: | Size: 530 B After Width: | Height: | Size: 466 B |
@ -691,10 +691,8 @@ $('.file-star').click(function() {
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if (data['success']) {
|
if (data['success']) {
|
||||||
if (state == 'starred') {
|
if (state == 'starred') {
|
||||||
feedback('{% trans "Unstarred successfully" %}', 'success');
|
|
||||||
it.attr('src', '{{ MEDIA_URL }}img/gray-unstar-icon.png').attr('alt','{% trans 'Unstarred' %}').attr('title','{% trans 'Unstarred' %}').data('status','unstarred');
|
it.attr('src', '{{ MEDIA_URL }}img/gray-unstar-icon.png').attr('alt','{% trans 'Unstarred' %}').attr('title','{% trans 'Unstarred' %}').data('status','unstarred');
|
||||||
} else {
|
} else {
|
||||||
feedback('{% trans "Starred successfully" %}', 'success');
|
|
||||||
it.attr('src', '{{ MEDIA_URL }}img/gray-star-icon.png').attr('alt','{% trans 'Starred' %}').attr('title','{% trans 'Starred' %}').data('status','starred');
|
it.attr('src', '{{ MEDIA_URL }}img/gray-star-icon.png').attr('alt','{% trans 'Starred' %}').attr('title','{% trans 'Starred' %}').data('status','starred');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user