Author: rhari
Date: Thu May 10 14:36:54 2007
New Revision: 425
URL: http://svn.gna.org/viewcvs/phplinker?rev=425&view=rev
Log:
#132
Bug fix
Modified:
trunk/www/js/drag-drop-folder-tree.js
Modified: trunk/www/js/drag-drop-folder-tree.js
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/js/drag-drop-folder-tree.js?rev=425&r1=424&r2=425&view=diff
==============================================================================
--- trunk/www/js/drag-drop-folder-tree.js (original)
+++ trunk/www/js/drag-drop-folder-tree.js Thu May 10 14:36:54 2007
@@ -630,7 +630,7 @@
JSTreeObj.dragNode_parent.appendChild(JSTreeObj.dragNode_source);
}
- if (JSTreeObj.dragNode_destination &&
JSTreeObj.dragNode_destination.id != 'root'){
+ if (JSTreeObj.dragNode_destination &&
JSTreeObj.dragNode_destination.id != 'root' &&
JSTreeObj.dragNode_destination.id != 'root_tag'){
// Modification de l'id_ad_tag de la catégorie
destination
JSTreeObj.dragNode_destination.setAttribute('id_ad_tag',
JSTreeObj.dragNode_source.id.substring(4));
JSTreeObj.dragNode_destination.setAttribute('Modified', 'true');
@@ -652,7 +652,7 @@
// Si le tag est droppé dans le root, juste
modifier ces enfants
else{
- if (JSTreeObj.dragNode_destination &&
JSTreeObj.hasSubNodes(JSTreeObj.dragNode_destination) && confirm("Cette action
sera récursive?"))
+ if (JSTreeObj.dragNode_destination.id !=
'root_tag' && JSTreeObj.dragNode_destination &&
JSTreeObj.hasSubNodes(JSTreeObj.dragNode_destination) && confirm("Cette action
sera récursive?"))
JSTreeObj.setTag(JSTreeObj.dragNode_destination,
JSTreeObj.dragNode_source.id.substring(4));
}
}
@@ -997,6 +997,7 @@
currentItemToEdit.setAttribute('visible', '0');
currentItemToEdit.setAttribute('Modified', 'true');
currentItemToEdit.getElementsByTagName("A")[0].style.color
= "#999999";
+//
currentItemToEdit.getElementsByTagName("A")[0].style.backgroundColor =
"#999999";
currentItemToEdit.setAttribute('Hide', 'true');
if (this.hasSubNodes(currentItemToEdit)){
var lis = currentItemToEdit.getElementsByTagName('LI');
@@ -1004,7 +1005,8 @@
for(var no=0;no<lis.length;no++){
elt = document.getElementById(lis[no].id);
elt.setAttribute('visible', '0');
- elt.getElementsByTagName("A")[0].style.color =
"#999999";
+ elt.getElementsByTagName("A")[0].style.color =
"#999999";
+//
elt.getElementsByTagName("A")[0].style.backgroundColor = "#999999";
elt.setAttribute('Hide', 'true');
elt.setAttribute('Modified', 'true');
}
@@ -1137,7 +1139,7 @@
}
if (menuItems[no].getAttribute('is_tag') ==
'true'){
folderImg.src = this.imageFolder + "sheet_"
+ menuItems[no].id.substring(4) + ".gif";
-// alert(folderImg.src);
+// alert(folderImg.src);
}
//******************************************************************
menuItems[no].insertBefore(folderImg,aTag);
_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits