mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
[starred-file] fix bug when generate file view url
This commit is contained in:
@@ -21,11 +21,10 @@ define([
|
||||
},
|
||||
|
||||
render: function () {
|
||||
var data = this.model.toJSON(),
|
||||
file_name = data['file_name'];
|
||||
var data = this.model.toJSON();
|
||||
|
||||
data['is_img'] = Common.imageCheck(file_name);
|
||||
data['encoded_path'] = Common.encodePath(file_name);
|
||||
data['is_img'] = Common.imageCheck(data['file_name']);
|
||||
data['encoded_path'] = Common.encodePath(data['path']);
|
||||
|
||||
this.$el.html(this.template(data));
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user