svn commit: r1781731 [2/45] - in /ofbiz/trunk: applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/ideal/ applications/accounting/webapp/ap/error/ applications/accounting/webapp/ar/error/ applications/commonext/webapp/ofbizsetu...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1781731 [2/45] - in /ofbiz/trunk: applications/accounting/src/main/java/org/apache/ofbiz/accounting/thirdparty/ideal/ applications/accounting/webapp/ap/error/ applications/accounting/webapp/ar/error/ applications/commonext/webapp/ofbizsetu...

jleroux@apache.org
Modified: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_en.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_en.js?rev=1781731&r1=1781730&r2=1781731&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_en.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_en.js Sun Feb  5 11:09:59 2017
@@ -1,24 +1,24 @@
-/*
- * Translated default messages for the jQuery validation plugin.
- * Locale: EN
- */
-jQuery.extend(jQuery.validator.messages, {
-    required: "This field is required.",
-    remote: "Please fix this field.",
-    email: "Please enter a valid email address.",
-    url: "Please enter a valid URL.",
-    date: "Please enter a valid date.",
-    dateISO: "Please enter a valid date (ISO).",
-    number: "Please enter a valid number.",
-    digits: "Please enter only digits.",
-    creditcard: "Please enter a valid credit card number.",
-    equalTo: "Please enter the same value again.",
-    accept: "Please enter a value with a valid extension.",
-    maxlength: $.validator.format("Please enter no more than {0} characters."),
-    minlength: $.validator.format("Please enter at least {0} characters."),
-    rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."),
-    range: $.validator.format("Please enter a value between {0} and {1}."),
-    max: $.validator.format("Please enter a value less than or equal to {0}."),
-    min: $.validator.format("Please enter a value greater than or equal to {0}.")
-});
-
+/*
+ * Translated default messages for the jQuery validation plugin.
+ * Locale: EN
+ */
+jQuery.extend(jQuery.validator.messages, {
+    required: "This field is required.",
+    remote: "Please fix this field.",
+    email: "Please enter a valid email address.",
+    url: "Please enter a valid URL.",
+    date: "Please enter a valid date.",
+    dateISO: "Please enter a valid date (ISO).",
+    number: "Please enter a valid number.",
+    digits: "Please enter only digits.",
+    creditcard: "Please enter a valid credit card number.",
+    equalTo: "Please enter the same value again.",
+    accept: "Please enter a value with a valid extension.",
+    maxlength: $.validator.format("Please enter no more than {0} characters."),
+    minlength: $.validator.format("Please enter at least {0} characters."),
+    rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."),
+    range: $.validator.format("Please enter a value between {0} and {1}."),
+    max: $.validator.format("Please enter a value less than or equal to {0}."),
+    min: $.validator.format("Please enter a value greater than or equal to {0}.")
+});
+

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_en.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_et.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_eu.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_ge.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_hr.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_ja.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_ka.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_pt_BR.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_pt_PT.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_si.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_si.js?rev=1781731&r1=1781730&r2=1781731&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_si.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_si.js Sun Feb  5 11:09:59 2017
@@ -1,23 +1,23 @@
-/*
- * Translated default messages for the jQuery validation plugin.
- * Locale: SI (Slovenian)
- */
-jQuery.extend(jQuery.validator.messages, {
- required: "To polje je obvezno.",
- remote: "Vpis v tem polju ni v pravi obliki.",
- email: "Prosimo, vnesite pravi email naslov.",
- url: "Prosimo, vnesite pravi URL.",
- date: "Prosimo, vnesite pravi datum.",
- dateISO: "Prosimo, vnesite pravi datum (ISO).",
- number: "Prosimo, vnesite pravo Å¡tevilko.",
- digits: "Prosimo, vnesite samo Å¡tevilke.",
- creditcard: "Prosimo, vnesite pravo Å¡tevilko kreditne kartice.",
- equalTo: "Prosimo, ponovno vnesite enako vsebino.",
- accept: "Prosimo, vnesite vsebino z pravo končnico.",
- maxlength: $.validator.format("Prosimo, da ne vnašate več kot {0} znakov."),
- minlength: $.validator.format("Prosimo, vnesite vsaj {0} znakov."),
- rangelength: $.validator.format("Prosimo, vnesite od {0} do {1} znakov."),
- range: $.validator.format("Prosimo, vnesite vrednost med {0} in {1}."),
- max: $.validator.format("Prosimo, vnesite vrednost manjšo ali enako {0}."),
- min: $.validator.format("Prosimo, vnesite vrednost večjo ali enako {0}.")
-});
+/*
+ * Translated default messages for the jQuery validation plugin.
+ * Locale: SI (Slovenian)
+ */
+jQuery.extend(jQuery.validator.messages, {
+ required: "To polje je obvezno.",
+ remote: "Vpis v tem polju ni v pravi obliki.",
+ email: "Prosimo, vnesite pravi email naslov.",
+ url: "Prosimo, vnesite pravi URL.",
+ date: "Prosimo, vnesite pravi datum.",
+ dateISO: "Prosimo, vnesite pravi datum (ISO).",
+ number: "Prosimo, vnesite pravo Å¡tevilko.",
+ digits: "Prosimo, vnesite samo Å¡tevilke.",
+ creditcard: "Prosimo, vnesite pravo Å¡tevilko kreditne kartice.",
+ equalTo: "Prosimo, ponovno vnesite enako vsebino.",
+ accept: "Prosimo, vnesite vsebino z pravo končnico.",
+ maxlength: $.validator.format("Prosimo, da ne vnašate več kot {0} znakov."),
+ minlength: $.validator.format("Prosimo, vnesite vsaj {0} znakov."),
+ rangelength: $.validator.format("Prosimo, vnesite od {0} do {1} znakov."),
+ range: $.validator.format("Prosimo, vnesite vrednost med {0} in {1}."),
+ max: $.validator.format("Prosimo, vnesite vrednost manjšo ali enako {0}."),
+ min: $.validator.format("Prosimo, vnesite vrednost večjo ali enako {0}.")
+});

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_si.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_sl.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_sr.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_sv.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_th.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_uk.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_vi.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_zh.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/images/webapp/images/jquery/plugins/validate/localization/messages_zh_TW.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ofbiz/trunk/framework/images/webapp/images/myportal.css
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/myportal.css?rev=1781731&r1=1781730&r2=1781731&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/myportal.css (original)
+++ ofbiz/trunk/framework/images/webapp/images/myportal.css Sun Feb  5 11:09:59 2017
@@ -1,40 +1,40 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-html,body {
-height:100%;
-margin:0;
-}
-
-#loading {
-background-color: rgba(0, 0, 0, 0.496094);
-position: absolute;
-top: 0px;
-left: 0px;
-width: 100%;
-height: 100%;
-z-index: 9999;
-}
-
-#loaderImg {
-position: absolute;
-top: 250px;
-left: 50%;
-}
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+html,body {
+height:100%;
+margin:0;
+}
+
+#loading {
+background-color: rgba(0, 0, 0, 0.496094);
+position: absolute;
+top: 0px;
+left: 0px;
+width: 100%;
+height: 100%;
+z-index: 9999;
+}
+
+#loaderImg {
+position: absolute;
+top: 250px;
+left: 50%;
+}
+

Propchange: ofbiz/trunk/framework/images/webapp/images/myportal.css
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ofbiz/trunk/framework/images/webapp/images/myportal.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/myportal.js?rev=1781731&r1=1781730&r2=1781731&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/myportal.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/myportal.js Sun Feb  5 11:09:59 2017
@@ -1,191 +1,191 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-//Drag & Drop Functions for myPortal
-
-//global Var for controlling hover Boxes
-"use strict";
-var SORTABLE_COLUMN_LIST = null;
-var IS_UPDATED = false;
-var DESTINATION_COLUMN_ID = null;
-
-//init KeyListener
-jQuery(document).ready( function() {
-    // initializ the d_n_d jQuery functions
-    jQuery(SORTABLE_COLUMN_LIST).sortable({
-        connectWith: ".connectedSortable",
-        handle: ".portlet-config, .screenlet-title-bar",
-        tolerance: "pointer",
-        dropOnEmpty: true,
-        cursor: "move",
-        revert: true,
-        placeholder: "ui-state-highlight",
-        forcePlaceholderSize: true,
-        update: function(event, ui) {
-                    IS_UPDATED = true;
-                    DESTINATION_COLUMN_ID = jQuery(this).attr("id");
-                },
-        stop: function(event, ui) {
-                    preparePortletBackgroundOrderChange(jQuery(SORTABLE_COLUMN_LIST).sortable("toArray", {connected: true}), jQuery(ui.item).attr("id"), DESTINATION_COLUMN_ID);
-                    // reset the flags
-                    IS_UPDATED = false;
-                    DESTINATION_COLUMN_ID = null;
-                }
-    });
-});
-
-function preparePortletBackgroundOrderChange(serializedDate, dragedItemId, destinationColumnId) {
-    if (!IS_UPDATED) {
-        return;
-    }
-    
-    // split the portal column id
-    destinationColumnId = destinationColumnId.split("_")[1];
-    
-    // make clean array and remove all fields with empty values
-    var dataArray = []
-    jQuery.each(serializedDate, function(index, value) {
-        if (value.length) {
-            dataArray.push(value);
-        }
-    });
-
-    // find the new position of the moved element in the array
-    var beforeItem = null;
-    var afterItem = null;
-    var currentItem = null;
-    
-    jQuery.each(dataArray, function(index, value) {
-        if (dragedItemId == value) {
-            // create object for the item before the current dropped object if not undefined
-            var dataArrayValue = dataArray[index-1];
-            if (dataArrayValue != undefined) {
-                beforeItem = jQuery("#" + dataArrayValue);
-            }
-            
-            // create object for the item after the current dropped object if not undefined                        
-            dataArrayValue = dataArray[index+1];
-            if (dataArrayValue != undefined) {                          
-                afterItem = jQuery("#" + dataArrayValue);
-            }
-            
-            // create object for the current dropped object
-            currentItem = jQuery("#" + value);
-            
-            // break the jQuery.each loop
-            return false;
-        }
-    });
-    
-    // check if the before or after Item is still in the new column to get a reference Object in this column
-    var nextObjectToDroppedItem = null;
-    
-    // check if the item is moved to another column
-    if (destinationColumnId != null && destinationColumnId != currentItem.attr("columnseqid") ) {
-        //mode can be "BEFORE" (for adding the item before the nextObjectToDroppedItem), "AFTER" (for adding the item after the nextObjectToDroppedItem) or "NEW" (when the item is the first one in the list and should be added to the top)
-        var mode = null;
-        if ((beforeItem == null || destinationColumnId != beforeItem.attr("columnseqid")) && (afterItem == null || destinationColumnId != afterItem.attr("columnseqid"))) {
-            // the moved object entered an empty list
-            mode = "NEW";
-        } else if (beforeItem != null && destinationColumnId == beforeItem.attr("columnseqid")) {
-            // the moved object entered in a new list and should be moved after this beforeItem
-            nextObjectToDroppedItem = beforeItem;
-            mode = "AFTER";
-        } else if (afterItem != null && destinationColumnId == afterItem.attr("columnseqid")) {
-            // the moved object entered in a new list and should be moved before this beforeItem
-            nextObjectToDroppedItem = afterItem;
-            mode = "BEFORE";
-        }
-        
-    } else {
-        // if the item is moved in the same column get the before and/or after element
-        if (beforeItem.attr("id") != null) {
-            mode = "AFTER";
-            nextObjectToDroppedItem = beforeItem;
-        } else if (afterItem.attr("id") != null){
-            mode = "BEFORE";
-            nextObjectToDroppedItem = afterItem;
-        }
-    }
-    
-    // call the update service
-    updatePortletOrder(currentItem, nextObjectToDroppedItem, mode, destinationColumnId);
-    
-    // change the html attributes after the move
-    currentItem.attr({"columnseqid": destinationColumnId});
-    
-
-}
-
-function updatePortletOrder(currentItem, nextObjectToDroppedItem, mode, destinationColumn) {
-    onStartRequest();
-    // create a JSON request object with the needed information
-    var requestData = {
-            mode: mode,
-            destinationColumn: destinationColumn,
-            o_portalPageId: currentItem.attr("portalpageid"),
-            o_portalPortletId: currentItem.attr("portalportletid"),
-            o_portletSeqId: currentItem.attr("portletseqid"),
-            d_portalPageId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portalpageid") : null,
-            d_portalPortletId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portalportletid") : null,
-            d_portletSeqId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portletseqid") : null
-    };
-    
-    jQuery.ajax({
-        url: "/myportal/control/updatePortalPagePortletSeqAjax",
-        data: requestData,
-        type: "POST",
-    }).success( function(data){ onCompleteRequest(); });
-
-}
-
-//removes the loading image
-function onCompleteRequest() {
-    var loading = document.getElementById("loading");
-    if(loading != null){
-        //IE Fix (IE treats DOM objects and Javascript objects separately, and you can't extend the DOM objects using Object.prototype)
-        loading.parentNode.removeChild(loading);
-    }
-}
-
-//safely get height of whole document
-function getDocHeight() {
-    var D = document;
-    return Math.max(
-        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
-        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
-        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
-    );
-}
-
-//displays the loading image
-function onStartRequest() {    
-    var p = document.createElement("div");
-    p.setAttribute("id", "loading");    
-    p.setAttribute("style", "height: " + getDocHeight() + "px;" )
-    
-    var img = document.createElement("img");
-    img.setAttribute("src", "/images/loader.gif");
-    img.setAttribute("id", "loaderImg");
-
-    p.appendChild(img);
-    
-    var container = document.getElementById("content-main-section");
-    container.appendChild(p);
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//Drag & Drop Functions for myPortal
+
+//global Var for controlling hover Boxes
+"use strict";
+var SORTABLE_COLUMN_LIST = null;
+var IS_UPDATED = false;
+var DESTINATION_COLUMN_ID = null;
+
+//init KeyListener
+jQuery(document).ready( function() {
+    // initializ the d_n_d jQuery functions
+    jQuery(SORTABLE_COLUMN_LIST).sortable({
+        connectWith: ".connectedSortable",
+        handle: ".portlet-config, .screenlet-title-bar",
+        tolerance: "pointer",
+        dropOnEmpty: true,
+        cursor: "move",
+        revert: true,
+        placeholder: "ui-state-highlight",
+        forcePlaceholderSize: true,
+        update: function(event, ui) {
+                    IS_UPDATED = true;
+                    DESTINATION_COLUMN_ID = jQuery(this).attr("id");
+                },
+        stop: function(event, ui) {
+                    preparePortletBackgroundOrderChange(jQuery(SORTABLE_COLUMN_LIST).sortable("toArray", {connected: true}), jQuery(ui.item).attr("id"), DESTINATION_COLUMN_ID);
+                    // reset the flags
+                    IS_UPDATED = false;
+                    DESTINATION_COLUMN_ID = null;
+                }
+    });
+});
+
+function preparePortletBackgroundOrderChange(serializedDate, dragedItemId, destinationColumnId) {
+    if (!IS_UPDATED) {
+        return;
+    }
+    
+    // split the portal column id
+    destinationColumnId = destinationColumnId.split("_")[1];
+    
+    // make clean array and remove all fields with empty values
+    var dataArray = []
+    jQuery.each(serializedDate, function(index, value) {
+        if (value.length) {
+            dataArray.push(value);
+        }
+    });
+
+    // find the new position of the moved element in the array
+    var beforeItem = null;
+    var afterItem = null;
+    var currentItem = null;
+    
+    jQuery.each(dataArray, function(index, value) {
+        if (dragedItemId == value) {
+            // create object for the item before the current dropped object if not undefined
+            var dataArrayValue = dataArray[index-1];
+            if (dataArrayValue != undefined) {
+                beforeItem = jQuery("#" + dataArrayValue);
+            }
+            
+            // create object for the item after the current dropped object if not undefined                        
+            dataArrayValue = dataArray[index+1];
+            if (dataArrayValue != undefined) {                          
+                afterItem = jQuery("#" + dataArrayValue);
+            }
+            
+            // create object for the current dropped object
+            currentItem = jQuery("#" + value);
+            
+            // break the jQuery.each loop
+            return false;
+        }
+    });
+    
+    // check if the before or after Item is still in the new column to get a reference Object in this column
+    var nextObjectToDroppedItem = null;
+    
+    // check if the item is moved to another column
+    if (destinationColumnId != null && destinationColumnId != currentItem.attr("columnseqid") ) {
+        //mode can be "BEFORE" (for adding the item before the nextObjectToDroppedItem), "AFTER" (for adding the item after the nextObjectToDroppedItem) or "NEW" (when the item is the first one in the list and should be added to the top)
+        var mode = null;
+        if ((beforeItem == null || destinationColumnId != beforeItem.attr("columnseqid")) && (afterItem == null || destinationColumnId != afterItem.attr("columnseqid"))) {
+            // the moved object entered an empty list
+            mode = "NEW";
+        } else if (beforeItem != null && destinationColumnId == beforeItem.attr("columnseqid")) {
+            // the moved object entered in a new list and should be moved after this beforeItem
+            nextObjectToDroppedItem = beforeItem;
+            mode = "AFTER";
+        } else if (afterItem != null && destinationColumnId == afterItem.attr("columnseqid")) {
+            // the moved object entered in a new list and should be moved before this beforeItem
+            nextObjectToDroppedItem = afterItem;
+            mode = "BEFORE";
+        }
+        
+    } else {
+        // if the item is moved in the same column get the before and/or after element
+        if (beforeItem.attr("id") != null) {
+            mode = "AFTER";
+            nextObjectToDroppedItem = beforeItem;
+        } else if (afterItem.attr("id") != null){
+            mode = "BEFORE";
+            nextObjectToDroppedItem = afterItem;
+        }
+    }
+    
+    // call the update service
+    updatePortletOrder(currentItem, nextObjectToDroppedItem, mode, destinationColumnId);
+    
+    // change the html attributes after the move
+    currentItem.attr({"columnseqid": destinationColumnId});
+    
+
+}
+
+function updatePortletOrder(currentItem, nextObjectToDroppedItem, mode, destinationColumn) {
+    onStartRequest();
+    // create a JSON request object with the needed information
+    var requestData = {
+            mode: mode,
+            destinationColumn: destinationColumn,
+            o_portalPageId: currentItem.attr("portalpageid"),
+            o_portalPortletId: currentItem.attr("portalportletid"),
+            o_portletSeqId: currentItem.attr("portletseqid"),
+            d_portalPageId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portalpageid") : null,
+            d_portalPortletId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portalportletid") : null,
+            d_portletSeqId: (nextObjectToDroppedItem != null) ? nextObjectToDroppedItem.attr("portletseqid") : null
+    };
+    
+    jQuery.ajax({
+        url: "/myportal/control/updatePortalPagePortletSeqAjax",
+        data: requestData,
+        type: "POST",
+    }).success( function(data){ onCompleteRequest(); });
+
+}
+
+//removes the loading image
+function onCompleteRequest() {
+    var loading = document.getElementById("loading");
+    if(loading != null){
+        //IE Fix (IE treats DOM objects and Javascript objects separately, and you can't extend the DOM objects using Object.prototype)
+        loading.parentNode.removeChild(loading);
+    }
+}
+
+//safely get height of whole document
+function getDocHeight() {
+    var D = document;
+    return Math.max(
+        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
+        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
+        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
+    );
+}
+
+//displays the loading image
+function onStartRequest() {    
+    var p = document.createElement("div");
+    p.setAttribute("id", "loading");    
+    p.setAttribute("style", "height: " + getDocHeight() + "px;" )
+    
+    var img = document.createElement("img");
+    img.setAttribute("src", "/images/loader.gif");
+    img.setAttribute("id", "loaderImg");
+
+    p.appendChild(img);
+    
+    var container = document.getElementById("content-main-section");
+    container.appendChild(p);
+}

Propchange: ofbiz/trunk/framework/images/webapp/images/myportal.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/webtools/template/log/FetchLogs.ftl
------------------------------------------------------------------------------
    svn:eol-style = native