Skip to content

Commit

Permalink
修复思维导图无法下载的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
weichaoduo committed Jan 18, 2020
1 parent b65e3c8 commit 3c2aae5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
3 changes: 1 addition & 2 deletions app/public/install/data/main.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3214,8 +3214,7 @@ ALTER TABLE `issue_main` ADD FULLTEXT KEY `issue_num` (`issue_num`);
-- 表的索引 `issue_moved_issue_key`
--
ALTER TABLE `issue_moved_issue_key`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `idx_old_issue_key` (`old_issue_key`);
ADD PRIMARY KEY (`id`);

--
-- 表的索引 `issue_priority`
Expand Down
25 changes: 11 additions & 14 deletions app/view/twig/project/mindmap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -1021,11 +1021,6 @@
at: 'bottom left', // at the bottom right of...
},
events: {
show: function(event, api) {
$('#btn-export-save').bind('click',function(){
MM.UI.Backend.File.save();
});
}
}
});
});
Expand All @@ -1041,16 +1036,18 @@
导出格式
</div>
<div id="popover-content" class="hide">
<select class="format" id="export_format">
<option value="json">JSON</option>
<option value="freemind">FreeMind</option>
<option value="mma">Mind Map Architect</option>
<option value="plaintext">Plain text</option>
</select>
<div class="row-content-block">
<a class="btn btn-cancel hide" data-dismiss="modal" href="#" onclick="$('#toolbar-export').qtip('toggle', false); ">取消</a>
<div >
<select class="format" id="export_format">
<option value="json">JSON</option>
<option value="freemind">FreeMind</option>
<option value="mma">Mind Map Architect</option>
<option value="plaintext">Plain text</option>
</select>
</div>
<div style="margin-top: 6px">
<a class="btn btn-cancel " data-dismiss="modal" href="#" onclick="toolbar_export_qtip.qtip('toggle', false); ">取消</a>
<span >
<input id="btn-export-save" type="button" value="导 出" class="btn btn-info">
<input id="btn-export-save" onclick="MM.UI.Backend.File.save();" type="button" value="导 出" class="btn btn-info">
</span>
</div>
</div>
Expand Down

0 comments on commit 3c2aae5

Please sign in to comment.