Author: rhari
Date: Thu May 10 10:52:35 2007
New Revision: 424
URL: http://svn.gna.org/viewcvs/phplinker?rev=424&view=rev
Log:
#211
- Modification de la couleur lors des changements de visibilité
- Récursivité de l'invisibilité d'une catégorie
- Lorsqu'une catégorie visible est déplacée dans une catégorie invisible, elle
sera invisible
Modified:
trunk/www/admin/category.php
trunk/www/js/drag-drop-folder-tree.js
Modified: trunk/www/admin/category.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/category.php?rev=424&r1=423&r2=424&view=diff
==============================================================================
--- trunk/www/admin/category.php (original)
+++ trunk/www/admin/category.php Thu May 10 10:52:35 2007
@@ -86,7 +86,7 @@
noDelete=\"".$bool."\"
>
<a href=\"#\"
- title=\"id : ".$tree_categs[$i]['id']."\"
+ title=\"id : ".$tree_categs[$i]['id']."\" style=\"color:
".$color."\"
>".str_replace(" ", " ",
$tree_categs[$i]['name'])."</a>";
// onclick=\"javascript:alert(parentNode.getAttribute('id_ad_tag'));\"
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=424&r1=423&r2=424&view=diff
==============================================================================
--- trunk/www/js/drag-drop-folder-tree.js (original)
+++ trunk/www/js/drag-drop-folder-tree.js Thu May 10 10:52:35 2007
@@ -594,6 +594,9 @@
}
JSTreeObj.dragNode_source.setAttribute('Modified', 'true');
JSTreeObj.dragNode_source.setAttribute('Dropped', 'true');
+//
alert(JSTreeObj.dragNode_destination.getAttribute('visible'));
+ if
(JSTreeObj.dragNode_destination.getAttribute('visible') == '0')
+
JSTreeObj.hideItem(JSTreeObj.dragNode_source,JSTreeObj.dragNode_source);
}
else{
// Putting the item back to it's original
location
@@ -984,6 +987,7 @@
currentItemToEdit = obj2.parentNode;
currentItemToEdit.setAttribute('visible', '1');
currentItemToEdit.setAttribute('Modified', 'true');
+ currentItemToEdit.getElementsByTagName("A")[0].style.color
= "#000000";
currentItemToEdit.setAttribute('Show', 'true');
}
,
@@ -992,7 +996,19 @@
currentItemToEdit = obj2.parentNode;
currentItemToEdit.setAttribute('visible', '0');
currentItemToEdit.setAttribute('Modified', 'true');
+ currentItemToEdit.getElementsByTagName("A")[0].style.color
= "#999999";
currentItemToEdit.setAttribute('Hide', 'true');
+ if (this.hasSubNodes(currentItemToEdit)){
+ var lis = currentItemToEdit.getElementsByTagName('LI');
+ var elt;
+ 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.setAttribute('Hide', 'true');
+ elt.setAttribute('Modified', 'true');
+ }
+ }
}
,
renameItem : function(obj1,obj2)
_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits