calendar.js: fix RMS plot dialog

This commit is contained in:
Milan
2021-03-21 23:10:49 +01:00
parent 95a5bf8800
commit 63804d7db5

View File

@@ -456,11 +456,14 @@ function createId(prefix) {
return prefix+'_'+s4() + s4(); return prefix+'_'+s4() + s4();
} }
function showRmsPlot(id, project_id, studio_id, start){ function showRmsPlot(id, project_id, studio_id, start, elem){
console.log(id+" "+project_id+" "+studio_id+" "+start)
showDialog({ showDialog({
width:940, width:940,
height:560, height:560,
content: elem.html(),
buttons: {
Close : function() { $(this).parent().remove(); }
},
onOpen: function () { $(this).scrollTop(0); } onOpen: function () { $(this).scrollTop(0); }
}); });
return false; return false;
@@ -499,7 +502,7 @@ function initRmsPlot(){
$(this).addClass("clickHandler"); $(this).addClass("clickHandler");
$(this).click( function(event){ $(this).click( function(event){
event.stopImmediatePropagation(); event.stopImmediatePropagation();
showRmsPlot( id , project_id , studio_id , start ); showRmsPlot( id , project_id , studio_id , start, $(this) );
}); });
} }