Skip to content

Commit bfd939d

Browse files
author
minjk-bl
committed
Reverted version for changed FileNavigation extensions (need other way)
1 parent 3d6b0e2 commit bfd939d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

js/board/BoardFrame.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ define([
492492
// open file navigation
493493
let fileNavi = new FileNavigation({
494494
type: 'open',
495-
extensions: ['VP Note(*.vp)'],
495+
extensions: ['vp'],
496496
finish: function(filesPath, status, error) {
497497
// clear board before open note
498498
that.clearBoard();
@@ -554,7 +554,7 @@ define([
554554
let fileNavi = new FileNavigation({
555555
type: 'save',
556556
fileName: this.tmpState.boardTitle,
557-
extensions: ['VP Note(*.vp)'],
557+
extensions: ['vp'],
558558
finish: function(filesPath, status, error) {
559559
let boardTitle = filesPath[0].file;
560560
let boardPath = filesPath[0].path;
@@ -661,7 +661,7 @@ define([
661661
let fileNavi = new FileNavigation({
662662
type: 'save',
663663
fileName: this.tmpState.boardTitle,
664-
extensions: ['Python(*.py)'],
664+
extensions: ['py'],
665665
finish: function(filesPath, status, error) {
666666
let fileName = filesPath[0].file;
667667
let filePath = filesPath[0].path;

js/m_apps/Chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ define([
122122
$(this.wrapSelector('#vp_openFileNavigationBtn')).click(function() {
123123
let fileNavi = new FileNavigation({
124124
type: 'save',
125-
extensions: ['PNG(*.png)'],
125+
extensions: ['png'],
126126
finish: function(filesPath, status, error) {
127127
if (filesPath.length > 0) {
128128
let { file, path } = filesPath[0];

js/m_apps/PDF.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ nltk.download('punkt')`;
7373
$(this.wrapSelector('#vp_openFileNavigationBtn')).on('click', function() {
7474
let fileNavi = new FileNavigation({
7575
type: 'open',
76-
extensions: ['PDF(*.pdf)'],
76+
extensions: ['pdf'],
7777
finish: function(filesPath, status, error) {
7878
let pathList = filesPath.map(obj => obj.path);
7979
let pathStr = "'" + pathList.join("', '") + "'";

js/m_apps/Profiling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ define([
113113
case LIST_MENU_ITEM.SAVE:
114114
let fileNavi = new FileNavigation({
115115
type: 'save',
116-
extensions: ['HTML(*.html)'],
116+
extensions: ['html'],
117117
fileName: 'report',
118118
finish: function(filesPath, status, error) {
119119
filesPath.forEach( fileObj => {

js/m_apps/Snippets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ define([
118118
if (menu == 'import') {
119119
let fileNavi = new FileNavigation({
120120
type: 'open',
121-
extensions: ['Snippet(*.sn)'],
121+
extensions: ['sn'],
122122
finish: function(filesPath, status, error) {
123123
// import sn file
124124
filesPath.forEach(fileObj => {
@@ -282,7 +282,7 @@ define([
282282

283283
let fileNavi = new FileNavigation({
284284
type: 'save',
285-
extensions: ['Snippet(*.sn)'],
285+
extensions: ['sn'],
286286
finish: function(filesPath, status, error) {
287287
let fileObj = filesPath[0];
288288
var fileName = fileObj.file;

0 commit comments

Comments
 (0)