fixing lots of dashboard things.
This commit is contained in:
parent
9722bad470
commit
f6058c1b34
9 changed files with 104 additions and 29 deletions
|
|
@ -143,9 +143,10 @@ div.dragTitle
|
|||
|
||||
span.headerTitle
|
||||
{
|
||||
overflow-x:visible;
|
||||
height:22px;
|
||||
display:block;
|
||||
float:left;
|
||||
line-height:18px;
|
||||
z-index:999;
|
||||
margin-right:10px;
|
||||
padding-left:9px;
|
||||
|
|
@ -180,12 +181,32 @@ div#availableDashlets * span.options:hover {
|
|||
div#availableDashlets * span.options {
|
||||
display:none;
|
||||
opacity:0;
|
||||
top:50px;
|
||||
top:500px;
|
||||
filter:alpha(opacity=0);
|
||||
}
|
||||
div#availableDashlets * div.dragTrigger {
|
||||
background: none;
|
||||
float:none;
|
||||
height:auto;;
|
||||
height:auto;
|
||||
}
|
||||
div#availableDashlets * div.dragTitle {
|
||||
background:none;
|
||||
height:100%;
|
||||
height:auto;
|
||||
float:none;
|
||||
background-color: #eeeeee;
|
||||
border: solid #bbbbbb 1px;
|
||||
color: black;
|
||||
}
|
||||
div#availableDashlets * span.headerTitle {
|
||||
display:block;
|
||||
width:100%;
|
||||
line-height:auto;
|
||||
height:auto;
|
||||
background: none;
|
||||
}
|
||||
|
||||
#hideNewContentButton,#showNewContentButton {
|
||||
/* position:absolute;*/
|
||||
color: #465D94;
|
||||
|
|
|
|||
|
|
@ -216,11 +216,9 @@ function dragable_dragStart(e){
|
|||
|
||||
//set the start td
|
||||
startTD=document.getElementById(fObj.id.substr(0,fObj.id.indexOf("_div")));
|
||||
// alert("hdr" + fObj.id.substr(0,fObj.id.indexOf("_div")) + "_span");
|
||||
document.getElementById("hdr" + fObj.id.substr(0,fObj.id.indexOf("_div")) + "_span").style.overflowX="visible";
|
||||
|
||||
fObj.className="dragging";
|
||||
// fObj.style.opacity = '0.6';
|
||||
// fObj.style.filter = 'alpha(opacity=' + 60 + ')';
|
||||
|
||||
//set the page height and width in a var since IE changes them when scrolling
|
||||
pageHeight = docElement.scrollHeight;
|
||||
pageWidth = docElement.scrollWidth;
|
||||
|
|
@ -326,7 +324,33 @@ function dragable_dragStop(e) {
|
|||
if (z) {
|
||||
|
||||
if (endTD !=null && startTD!=null) {
|
||||
dragable_moveContent(startTD,endTD,endTDPos);
|
||||
fObj2 = dragable_getObjectByClass(startTD,"availableDashlet");
|
||||
|
||||
dragable_moveContent(startTD,endTD,endTDPos);
|
||||
|
||||
if (fObj2) {
|
||||
var replId = startTD.id;
|
||||
replId = replId.replace(/^td/gi,'');
|
||||
// alert(replId);
|
||||
var replUrl = available_dashlets[replId];
|
||||
// alert(replUrl);
|
||||
contentDiv = document.getElementById("ct" + replId + "_div");
|
||||
var hoopla = AjaxRequest.get(
|
||||
{
|
||||
'url':replUrl
|
||||
,'parameters':{
|
||||
'func':"ajaxInlineView"
|
||||
}
|
||||
,'onSuccess':function(req){
|
||||
var myArr528 = req.responseText.split(/beginDebug/mg,1);
|
||||
contentDiv.innerHTML = myArr528[0];
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// tdn6p_3ZAFRtB9WiyKnrwryg
|
||||
// ctn6p_3ZAFRtB9WiyKnrwryg_div
|
||||
}
|
||||
startTD=null;
|
||||
|
||||
if (dragable_isBlank(endTD)) {
|
||||
|
|
@ -338,6 +362,8 @@ function dragable_dragStop(e) {
|
|||
// document.getElementById(divName).style.filter = null;
|
||||
}
|
||||
dragable_postNewContentMap();
|
||||
|
||||
|
||||
}
|
||||
|
||||
for(i=0;i<dragableList.length;i++) {
|
||||
|
|
@ -363,6 +389,7 @@ function dragable_dragStop(e) {
|
|||
endTD.position = null;
|
||||
endTD=null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function dragable_postNewContentMap() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue