1
0
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:
lian
2015-07-06 14:43:45 +08:00
parent 4c414b735c
commit 20c7358ef9
2 changed files with 2 additions and 2 deletions

View File

@@ -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() {