Skip to content

Commit

Permalink
sort timelapse clips
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Dec 7, 2016
1 parent 1624652 commit 2203c30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions interface/help.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion intervalometer/intervalometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,10 @@ intervalometer.getRecentTimelapseClips = function(count, callback) {
});
} else {
setTimeout(function(){
console.log("clips:", clips);
//console.log("clips:", clips);
clips = clips.sort(function(a, b){
return a.name < b.name;
});
callback(null, clips);
});
}
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if (VIEW_HARDWARE) {
var ERRORDOWNLOADING = "An error occurred while downloading the latest code from libgphoto2 github. Please make sure the VIEW is connected to the internet.\nSystem message:\n";
var SUCCESS = "The camera support library has been successfully updated! Your VIEW intervalometer can now support the latest camera models.";

ui.confirmationPrompt("Update camera support library?", "Update", "cancel", help.saveXMPs, function(cb){
ui.confirmationPrompt("Update camera support library?", "Update", "cancel", help.updateCameraLibrary, function(cb){
cb();
var backupStatus = oled.defaultStatusString;
oled.defaultStatus("updating camera support");
Expand Down

0 comments on commit 2203c30

Please sign in to comment.