This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sample_code:folder_picker [2014/12/06 06:03] stevegarman updated for v1.15 |
sample_code:folder_picker [2015/02/19 23:17] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
See also [[sample_code: | See also [[sample_code: | ||
===== The code ===== | ===== The code ===== | ||
- | |||
<code javascript folderpicker.js> | <code javascript folderpicker.js> | ||
Line 81: | Line 80: | ||
var lst = app.ListFolder(folderPath); | var lst = app.ListFolder(folderPath); | ||
lst.sort(function(x, | lst.sort(function(x, | ||
- | // | ||
self.lstFolds.SetList("" | self.lstFolds.SetList("" | ||
if( self.FolderPath != self.basePath ) | if( self.FolderPath != self.basePath ) | ||
Line 89: | Line 87: | ||
if ((! self.hideHiddenFiles) || (ths.indexOf(" | if ((! self.hideHiddenFiles) || (ths.indexOf(" | ||
var pth = folderPath + "/" | var pth = folderPath + "/" | ||
- | // | ||
if (app.IsFolder(pth)) | if (app.IsFolder(pth)) | ||
self.lstFolds.AddItem(ths, | self.lstFolds.AddItem(ths, | ||
Line 96: | Line 93: | ||
} | } | ||
- | // | ||
app.HideProgress(); | app.HideProgress(); | ||
} | } |