From 20bcd7cea540b980f028f9fbfe2d79b0fc2b2b7c Mon Sep 17 00:00:00 2001 From: Lucas Ponce Date: Wed, 19 Mar 2014 12:34:24 +0100 Subject: [PATCH] GTNPORTAL-3425 Error UI in Page Editor with PBR+Richfaces app --- .../eXo/portal/PortalHttpRequest.js | 272 +++++++++--------- 1 file changed, 138 insertions(+), 134 deletions(-) diff --git a/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js b/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js index 660c05d81..abed00a6f 100644 --- a/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js +++ b/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js @@ -1,16 +1,16 @@ /** * Copyright (C) 2009 eXo Platform SAS. - * + * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. - * + * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA @@ -47,7 +47,7 @@ /* * This object is wrapper on the value of each HTML block -* returned by an eXo Portal AJAX call. +* returned by an eXo Portal AJAX call. * * This includes: * - the portle ID @@ -67,13 +67,13 @@ var div = $(responseDiv).children("div"); this.portletId = div[0].innerHTML; this.portletData = div[1].innerHTML; - + this.blocksToUpdate = null; var blocks = $(div[1]).children(".BlockToUpdate"); - + if(blocks.length > 0 ) { var updates = this.blocksToUpdate = new Array() ; - + blocks.each(function() { var div = $(this).children("div"); updates[updates.length] = {blockId : div[0].innerHTML, data : div[1]}; @@ -85,22 +85,22 @@ * In that case we need to find all the script tags and dynamically execute them. * * Indeed, when being in an AJAX call that return some