This commit is contained in:
j 2016-02-29 14:44:47 +05:30
parent dd9892020c
commit a3c1081964
2 changed files with 323 additions and 333 deletions

View file

@ -6,7 +6,6 @@ var filePath = false;
var videoListener; var videoListener;
var seekBar; var seekBar;
var globalUser; var globalUser;
var srtFilePath = undefined;
var videoPath = undefined; var videoPath = undefined;
var videoHash = undefined; var videoHash = undefined;
@ -152,7 +151,6 @@ Ox.load({
saveTxt(); saveTxt();
videoPath = undefined; videoPath = undefined;
videoHash = undefined; videoHash = undefined;
srtFilePath = undefined;
textArea.elem.val(''); textArea.elem.val('');
var path = data.files[0].name; var path = data.files[0].name;
if ($.inArray(getFileNameExt(path.toLowerCase()), [ if ($.inArray(getFileNameExt(path.toLowerCase()), [
@ -349,12 +347,5 @@ End Preview functions
$(window).unload(function() { $(window).unload(function() {
console.log('unload');
if (typeof filePath != 'undefined' && typeof srtFilePath != 'undefined') {
globalUser.set_prefs({
'recentVideo': $('#video').attr("src").replace("file://", ""),
'recentSrt': srtFilePath
});
}
saveTxt(); saveTxt();
}); });

View file

@ -173,7 +173,6 @@ function toSeconds(t) {
return s; return s;
} }
function spansToSrt(arr, fmt, start_no) { function spansToSrt(arr, fmt, start_no) {
if (typeof start_no == 'undefined') { if (typeof start_no == 'undefined') {
start_no = 1; start_no = 1;