Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
remstef committed Aug 21, 2017
1 parent fe8d5fd commit 3b0245d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,13 @@
}

function vidjump(time){
console.log("jump to " + time);
var v = document.getElementsByTagName('video')[0];
if (v != undefined) {
v.currentTime=time;
v.play();
}else{
console.log("no element named 'video'.");
}
}

Expand All @@ -505,8 +508,6 @@
return;
if(id[0] == '#')
id = id.substring(1, id.length);
console.log(lastid);
console.log(id);
if(id == lastid){
var v = document.getElementsByTagName('video')[0];
if (v != undefined) {
Expand All @@ -526,7 +527,6 @@
}

window.onload = function() {
console.log("onload");
vidjumpid(window.location.hash);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected void populateItem(ListItem<String> item) {
@Override
protected void onEvent(AjaxRequestTarget target) {
button.setModelObject(!button.getModelObject());
String js = String.format("console.log('%1$s'); console.log('%2$s'); showHideTier('%1$s', %2$s)", item.getModelObject(), button.getModelObject());
String js = String.format("showHideTier('%1$s', %2$s)", item.getModelObject(), button.getModelObject());
target.appendJavaScript(js);
}
});
Expand Down

0 comments on commit 3b0245d

Please sign in to comment.