svn commit: r1533495 - 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: r1533495 - in /ofbiz/branches/release13.07: ./ framework/images/webapp/images/selectall.js

jleroux@apache.org
Author: jleroux
Date: Fri Oct 18 15:22:46 2013
New Revision: 1533495

URL: http://svn.apache.org/r1533495
Log:
"Applied fix from trunk for revision: 1506499"
------------------------------------------------------------------------
r1506499 | jleroux | 2013-07-24 13:20:45 +0200 (mer. 24 juil. 2013) | 3 lignes

Completes "Wrong to use !jQuery('#content-messages') in \framework\images\webapp\images\selectall.js line #354" https://issues.apache.org/jira/browse/OFBIZ-5279

Using submitted patch as a basis.
------------------------------------------------------------------------


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:r1506499

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=1533495&r1=1533494&r2=1533495&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:22:46 2013
@@ -347,6 +347,7 @@ function submitFormInBackground(form, ar
 function ajaxSubmitFormUpdateAreas(form, areaCsvString) {
    waitSpinnerShow();
    hideErrorContainer = function() {
+       Query('#content-messages').html('');
        jQuery('#content-messages').removeClass('errorMessage').fadeIn('fast');
    }
    updateFunction = function(data) {
@@ -367,7 +368,8 @@ function ajaxSubmitFormUpdateAreas(form,
           }
           jQuery('#content-messages').fadeIn('fast');
        }else {
-           if(jQuery('#content-messages')) {
+           if (jQuery('#content-messages').length == 0) {
+               jQuery('#content-messages').html('');
                jQuery('#content-messages').removeClass('errorMessage').fadeIn("fast");
            }
            ajaxUpdateAreas(areaCsvString);