Permalink
Browse files

added parameters to nuEmbedObject

  • Loading branch information...
steven-copley
steven-copley committed Nov 16, 2018
1 parent c7d9252 commit bb190aa572a81e9c34ad94102429bb5723d0888b
Showing with 9 additions and 7 deletions.
  1. +9 −7 nucommon.js
@@ -1906,11 +1906,12 @@ function nuDecendingSortNumberColumn(b, a) {
}
function nuEmbedObject(f, t){
function nuEmbedObject(f, d, w, h){
if(f == ''){return;}
if(w === undefined){w = 300;}
if(h === undefined){h = 300;}
var ob = JSON.parse(f);
var ty = ob.type;
@@ -1919,14 +1920,15 @@ function nuEmbedObject(f, t){
x.setAttribute("type", ty);
x.setAttribute("src", ur);
x.setAttribute("width", "300px");
x.setAttribute("height", "300px");
x.setAttribute("width", w + "px");
x.setAttribute("height", h + "px");
$('#' + t).html('');
document.getElementById(t).appendChild(x);
$('#' + d).html('');
document.getElementById(d).appendChild(x);
}
function nuStartDatabaseAdmin() {
window.open("nupmalogin.php?sessid="+window.nuSESSION);

0 comments on commit bb190aa

Please sign in to comment.