##// END OF EJS Templates
add download link to editor
Min RK -
Show More
@@ -74,6 +74,11 b' define(['
74 this.element.find('#rename-file').click(function () {
74 this.element.find('#rename-file').click(function () {
75 that.save_widget.rename();
75 that.save_widget.rename();
76 });
76 });
77 this.element.find('#download-file').click(function () {
78 window.open(utils.url_join_encode(
79 that.base_url, 'files', that.editor.file_path
80 ) + '?download=1');
81 });
77
82
78 // Edit
83 // Edit
79 this.element.find('#menu-find').click(function () {
84 this.element.find('#menu-find').click(function () {
@@ -48,6 +48,7 b' data-file-path="{{file_path}}"'
48 <li id="new-file"><a href="#">New</a></li>
48 <li id="new-file"><a href="#">New</a></li>
49 <li id="save-file"><a href="#">Save</a></li>
49 <li id="save-file"><a href="#">Save</a></li>
50 <li id="rename-file"><a href="#">Rename</a></li>
50 <li id="rename-file"><a href="#">Rename</a></li>
51 <li id="download-file"><a href="#">Download</a></li>
51 </ul>
52 </ul>
52 </li>
53 </li>
53 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
54 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
General Comments 0
You need to be logged in to leave comments. Login now