Merge branch 'release-1.34'
This commit is contained in:
commit
79cede7cac
|
@ -308,7 +308,7 @@ MAIN: while( $loop ) {
|
|||
} else {
|
||||
my $full_path = join('/', $Storage->Path(), $day_dir, $event_path);
|
||||
# Check storage id
|
||||
if ( !$Event->Storage()->Id() ) {
|
||||
if ( $Storage->Id() and !$Event->Storage()->Id() ) {
|
||||
Info("Correcting StorageId for event $$Event{Id} from $$Event{StorageId} $$Event{Path} to $$Storage{Id} $full_path");
|
||||
$Event->save({ StorageId=>$Storage->Id() });
|
||||
$Event->Path(undef);
|
||||
|
|
|
@ -126,28 +126,6 @@ function dataOnClick() {
|
|||
window[fnName](ev);
|
||||
};
|
||||
});
|
||||
document.querySelectorAll("button[data-on-mousedown]").forEach(function(el) {
|
||||
var fnName = el.getAttribute("data-on-mousedown");
|
||||
if ( !window[fnName] ) {
|
||||
console.error("Nothing found to bind to " + fnName + " on element " + el.name);
|
||||
return;
|
||||
}
|
||||
|
||||
el.onmousedown = function(ev) {
|
||||
window[fnName](ev);
|
||||
};
|
||||
});
|
||||
document.querySelectorAll("button[data-on-mouseup]").forEach(function(el) {
|
||||
var fnName = el.getAttribute("data-on-mouseup");
|
||||
if ( !window[fnName] ) {
|
||||
console.error("Nothing found to bind to " + fnName + " on element " + el.name);
|
||||
return;
|
||||
}
|
||||
|
||||
el.onmouseup = function(ev) {
|
||||
window[fnName](ev);
|
||||
};
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue