Author: michiel
Date: 2010-03-26 17:24:05 +0100 (Fri, 26 Mar 2010)
New Revision: 41640

Modified:
   
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/index.jspx
Log:
work in progress

Modified: 
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/index.jspx
===================================================================
--- 
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/index.jspx  
    2010-03-26 16:23:48 UTC (rev 41639)
+++ 
speeltuin/mihxil/portal/trunk/test-webapp/src/main/webapp/edit/page/index.jspx  
    2010-03-26 16:24:05 UTC (rev 41640)
@@ -7,7 +7,7 @@
     xmlns:mm-portal="http://www.mmbase.org/tags/mm/portal";
     xmlns:mm-portalt="urn:jsptagdir:/WEB-INF/tags/mm/portal"
     xmlns:os="http://www.opensymphony.com/oscache";
-     expires="0" type="application/xhtml+xml"
+    expires="0" type="text/html"
      language="client" postprocessor="none">
   <mm:import externid="showdate">now</mm:import>
   <mm:import externid="servletpath" required="true" />
@@ -27,26 +27,47 @@
           <link rel="stylesheet" type="text/css" href="${_}" />
         </mm:link>
         <mm:include page="/mmbase/jquery/jquery-ui.jspx" />
-        <mm:link page="/mmbase/jquery/css/jquery-ui-1.7.2.custom.css">
+        <mm:link 
page="/mmbase/jquery/css/jquery-ui-${requestScope['org.mmbase.jquery.ui.version']}.custom.css">
           <link type="text/css" href="${_}" rel="stylesheet" />
         </mm:link>
         <style type="text/css">
           .mm_portal_content {
             margin-left: 0px;
+            position: relative;
             background-color: yellow;
 
           }
           .mm_portal_content .block {
+             position: relative;
              float: left;
-             position: static;
              margin: 0; padding: 0px;
              border: dashed 1px green;
+
           }
         </style>
 
         <script type="text/javascript">
           $(function() {
-            $(".mm_portal_content").sortable();
+            $("#test").draggable({
+            cursor: 'move',
+            init: function() {
+            console.log("hi");
+            },
+            start: function(event, ui) {
+               var el = event.target;
+               alert('hoi');
+               console.log(event);
+               console.log(el);
+               console.log(ui);
+                 $(el).removeClass("x0 x1 x2 x3 y0 y1 y2 y4");
+            },
+
+            helper: function(event) {
+              console.log(event);
+            }
+            });
+
+
             $("select.width").live("change", function() {
               $(this).closest(".block").removeClass("width1 width2 width3 
width4");
               $(this).closest(".block").addClass("width" + $(this).val());
@@ -60,6 +81,9 @@
 
       </head>
       <body>
+        <div id="test">
+          KOLERE
+        </div>
         <c:choose>
           <c:when test="${empty page}">
             <table>
@@ -100,7 +124,7 @@
                 x
                 <select class="height" name="height">
                   <c:forEach begin="1" end="3" var="h">
-                    <mm:option value="${h}" 
compare="${blockpsorel.height}">${h}</mm:option>
+                    <mm:option value="${h}" 
compare="${blockposrel.height}">${h}</mm:option>
                   </c:forEach>
                 </select>
                 <br />

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to