From do-not-reply at jboss.org Wed Aug 11 02:32:57 2010 Content-Type: multipart/mixed; boundary="===============3425309637903566389==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r3798 - in portal/branches/branched-r3776/web: portal/src/main/webapp/groovy/webui/form and 1 other directory. Date: Wed, 11 Aug 2010 02:32:57 -0400 Message-ID: <201008110632.o7B6WvcN023518@svn01.web.mwc.hst.phx2.redhat.com> --===============3425309637903566389== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hoang_to Date: 2010-08-11 02:32:56 -0400 (Wed, 11 Aug 2010) New Revision: 3798 Modified: portal/branches/branched-r3776/web/eXoResources/src/main/webapp/javascri= pt/eXo/portal/UIPortalControl.js portal/branches/branched-r3776/web/portal/src/main/webapp/groovy/webui/f= orm/UISearchForm.gtmpl Log: Apply patch of GTNPORTAL-1367 Modified: portal/branches/branched-r3776/web/eXoResources/src/main/webapp/j= avascript/eXo/portal/UIPortalControl.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/branches/branched-r3776/web/eXoResources/src/main/webapp/javascr= ipt/eXo/portal/UIPortalControl.js 2010-08-11 04:53:00 UTC (rev 3797) +++ portal/branches/branched-r3776/web/eXoResources/src/main/webapp/javascr= ipt/eXo/portal/UIPortalControl.js 2010-08-11 06:32:56 UTC (rev 3798) @@ -58,21 +58,31 @@ } = }; = -UIPortalControl.prototype.onEnterPress =3D function(e) { - var e =3D window.event || e; - var uiPortalLoginFormAction =3D document.getElementById("UIPortalLoginFor= mAction"); - if(uiPortalLoginFormAction) { - var code; - if(!e) e =3D window.event; - if(e.keyCode) code =3D e.keyCode; - else if (e.which) code =3D e.which; - if(code =3D=3D13) { - if(this.t !=3D 13) { - uiPortalLoginFormAction.onclick() ; - } - this.t =3D code; - } - } +/** + * Process enter key press + * @param {Event} e this event + * @param {String} executeScript javascript command to execute if enter ke= y was pressed + */ +UIPortalControl.prototype.onEnterPress =3D function(e, executeScript) { + var e =3D window.event || e; + var code; + if(!e) e =3D window.event; + if(e.keyCode) code =3D e.keyCode; + else if (e.which) code =3D e.which; + if(code =3D=3D13) { + if(this.t !=3D 13) { + var uiPortalLoginFormAction =3D document.getElementById("UIPortalLogi= nFormAction"); + if(uiPortalLoginFormAction) { + uiPortalLoginFormAction.onclick() ; + } + else + { + if(executeScript) + eval(executeScript); + } + } + this.t =3D code; + } }; = /*********** Scroll Manager *************/ Modified: portal/branches/branched-r3776/web/portal/src/main/webapp/groovy/= webui/form/UISearchForm.gtmpl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/branches/branched-r3776/web/portal/src/main/webapp/groovy/webui/= form/UISearchForm.gtmpl 2010-08-11 04:53:00 UTC (rev 3797) +++ portal/branches/branched-r3776/web/portal/src/main/webapp/groovy/webui/= form/UISearchForm.gtmpl 2010-08-11 06:32:56 UTC (rev 3798) @@ -6,19 +6,21 @@
<%uiform.begin()%> -
+ <%String quickSearchlink =3D uicomponent.event("QuickSearch") ;%> + +
<%=3D_ctx.appRes("UISearch.label.Search= ")%>:
<% = QuickSearchInputSet =3D uiform.getQuickSearchInputSet(); for(field in QuickSearchInputSet.getChildren()) { uiform.renderField(field) = } = - String quickSearchlink =3D uicomponent.event("QuickSearch"); = %> "> - =
= <%uiform.end()%> =
--===============3425309637903566389==--