svn commit: r1533508 - in /ofbiz/branches/release13.07: ./ framework/images/webapp/images/selectall.js

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

svn commit: r1533508 - in /ofbiz/branches/release13.07: ./ framework/images/webapp/images/selectall.js

jleroux@apache.org
Author: jleroux
Date: Fri Oct 18 15:29:14 2013
New Revision: 1533508

URL: http://svn.apache.org/r1533508
Log:
"Applied fix from trunk for revision: 1506828"
------------------------------------------------------------------------
r1506828 | jleroux | 2013-07-25 09:18:03 +0200 (jeu. 25 juil. 2013) | 1 ligne

Rhaaa another wrong C/P, better use patches really :/
------------------------------------------------------------------------


Modified:
    ofbiz/branches/release13.07/   (props changed)
    ofbiz/branches/release13.07/framework/images/webapp/images/selectall.js

Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1506828

Modified: ofbiz/branches/release13.07/framework/images/webapp/images/selectall.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/framework/images/webapp/images/selectall.js?rev=1533508&r1=1533507&r2=1533508&view=diff
==============================================================================
--- ofbiz/branches/release13.07/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/branches/release13.07/framework/images/webapp/images/selectall.js Fri Oct 18 15:29:14 2013
@@ -352,7 +352,7 @@ function ajaxSubmitFormUpdateAreas(form,
    }
    updateFunction = function(data) {
        if (data._ERROR_MESSAGE_LIST_ != undefined || data._ERROR_MESSAGE_ != undefined) {
-           if(!jQuery('#content-messages')) {
+           if (!jQuery('#content-messages').length) {
               //add this div just after app-navigation
               if(jQuery('#content-main-section')){
                   jQuery('#content-main-section' ).before('<div id="content-messages" onclick="hideErrorContainer()"></div>');
@@ -367,8 +367,8 @@ function ajaxSubmitFormUpdateAreas(form,
               jQuery('#content-messages' ).html(data._ERROR_MESSAGE_);
           }
           jQuery('#content-messages').fadeIn('fast');
-       }else {
-           if (jQuery('#content-messages').length == 0) {
+       } else {
+           if (jQuery('#content-messages').length) {
                jQuery('#content-messages').html('');
                jQuery('#content-messages').removeClass('errorMessage').fadeIn("fast");
            }