embed player: support 'HH:MM:SS' for in/out

This commit is contained in:
rolux 2013-02-12 18:32:58 +05:30
parent 12a9500043
commit 1b5443a1d6

View file

@ -269,6 +269,9 @@ Ox.load('UI', {
} else if (query[k].match(/^[\d\.]+$/)) { } else if (query[k].match(/^[\d\.]+$/)) {
query[k] = parseFloat(query[k]); query[k] = parseFloat(query[k]);
} }
if (['in', 'out'].indexOf(k) > -1 && v.indexOf(':') > -1) {
query[k] = Ox.parseDuration(query[k]);
}
}); });
return Ox.extend({}, defaults, query); return Ox.extend({}, defaults, query);
} }