Skip to content

Commit

Permalink
修正部分路径为 undefined 的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Jul 5, 2015
1 parent 5f57916 commit 9f00102
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BaiduPanDownloadHelper/BaiduPanHelper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ var moveDialog = (function() {
// 刷新自动补全的路径
$('.list > div[data-extname="dir"]').map(function() {
var $this = $(this),
dirName = $this.find('.name-text').data('name');
n = $this.find('.name-text'),
dirName = n.data('name') || n.text().trim();

var value = isSearchPage ?
$this.find('.search-feild').data('path') + '/' + dirName :
Expand Down

0 comments on commit 9f00102

Please sign in to comment.