incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1003540 - in /sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling: explorer/js/explorer.js servlet/default/explorer/item.esp servlet/default/explorer/node.esp
Date Fri, 01 Oct 2010 13:53:50 GMT
Author: clemens
Date: Fri Oct  1 13:53:50 2010
New Revision: 1003540

URL: http://svn.apache.org/viewvc?rev=1003540&view=rev
Log:
delete node now works, jira: SLING-1812

Modified:
    sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/explorer/js/explorer.js
    sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/item.esp
    sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp

Modified: sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/explorer/js/explorer.js
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/explorer/js/explorer.js?rev=1003540&r1=1003539&r2=1003540&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/explorer/js/explorer.js
(original)
+++ sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/explorer/js/explorer.js
Fri Oct  1 13:53:50 2010
@@ -110,7 +110,7 @@ load_branch = function( path, callback, 
 		{
 			uri = '/' + uri;
 		};
-        // fetch children
+        // fetch children/subnodes
         $.ajax({
             url: uri,
             type: 'GET',
@@ -236,6 +236,7 @@ path_2_id = function( path ) {
 	id = id.replace(/:/g, '_');// due to the css selectors
 	id = id.replace(/\[/g, '_');// due to the css selectors
 	id = id.replace(/\]/g, '_');// due to the css selectors
+    id = id.replace(/\+/g, '_');// due to the css selectors
 	return id;
 }
 

Modified: sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/item.esp
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/item.esp?rev=1003540&r1=1003539&r2=1003540&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/item.esp
(original)
+++ sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/item.esp
Fri Oct  1 13:53:50 2010
@@ -46,6 +46,7 @@ if (nodes.hasNext()) {
 	id = id.replace(/:/g, '_');// due to the css selectors
 	id = id.replace(/\[/g, '_');// due to the css selectors
 	id = id.replace(/\]/g, '_');// due to the css selectors
+    id = id.replace(/\+/g, '_');// due to the css selectors
 	%>
 	<li>
         <p id="<%= id %>">

Modified: sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp?rev=1003540&r1=1003539&r2=1003540&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
(original)
+++ sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
Fri Oct  1 13:53:50 2010
@@ -52,7 +52,7 @@
       if ( session ) {
           session.checkPermission(path, "remove");
           %>
-            <form class="deleteNote" action="%3C%=path%%3E" method="post">
+            <form class="deleteNote" action="<%= path %>" method="post">
                 <input name=":operation" type="hidden" value="delete"> 
                 <input name=":redirect" type="hidden" value="<%=request.getContextPath()%><%=
Packages.org.apache.sling.api.resource.ResourceUtil.getParent(resource) %>.explorer.html">

                 <input type="submit" class="button" value="delete this node">



Mime
View raw message