mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 10:51:17 +00:00
fix bug when unstar a file
This commit is contained in:
@@ -37,7 +37,7 @@ define([
|
||||
path = this.model.get('path');
|
||||
|
||||
$.ajax({
|
||||
url: Common.getUrl({name: 'starred_files'}) + '?p=' + path + '&repo_id=' + repo_id,
|
||||
url: Common.getUrl({name: 'starred_files'}) + '?p=' + encodeURIComponent(path) + '&repo_id=' + repo_id,
|
||||
type: 'DELETE',
|
||||
beforeSend: Common.prepareCSRFToken,
|
||||
success: function() {
|
||||
|
Reference in New Issue
Block a user