Changeset 17783

Show
Ignore:
Timestamp:
07/25/08 09:33:26 (3 months ago)
Author:
carlos
Message:

Fix for bug-5756:
added a check in schedule/Main.jsp in order to not fire the "Expand All" and "Collapse All" javascript functions when "Ajax Flat View" is active.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/web/jsp/schedule/Main.jsp

    r17782 r17783  
    12581258function expand_all() { 
    12591259    var firstID = '<%=firstID%>'; 
    1260  
    1261     if (firstID != '') { 
    1262         showAll(firstID, notifyToggleTree); 
    1263     } else { 
    1264         var errorMessage = "<%=PropertyProvider.get("prm.global.javascript.nonodestoexpand.error")%>"; 
    1265         extAlert(errorTitle, errorMessage , Ext.MessageBox.ERROR); 
     1260    if(!isFlatAjaxView){ 
     1261        if (firstID != '') { 
     1262            showAll(firstID, notifyToggleTree); 
     1263        } else { 
     1264            var errorMessage = "<%=PropertyProvider.get("prm.global.javascript.nonodestoexpand.error")%>"; 
     1265            extAlert(errorTitle, errorMessage , Ext.MessageBox.ERROR); 
     1266        } 
    12661267    } 
    12671268} 
     
    12701271function collapse_all() { 
    12711272    var firstID = '<%=firstID%>'; 
    1272  
    1273     if (firstID != '') { 
    1274         hideAll(firstID, notifyToggleTree); 
    1275     } else { 
    1276         var errorMessage = "<%=PropertyProvider.get("prm.global.javascript.nonodestocollapse.error")%>"; 
    1277         extAlert(errorTitle, errorMessage , Ext.MessageBox.ERROR); 
     1273    if(!isFlatAjaxView){ 
     1274        if (firstID != '') { 
     1275            hideAll(firstID, notifyToggleTree); 
     1276        } else { 
     1277            var errorMessage = "<%=PropertyProvider.get("prm.global.javascript.nonodestocollapse.error")%>"; 
     1278            extAlert(errorTitle, errorMessage , Ext.MessageBox.ERROR); 
     1279        } 
    12781280    } 
    12791281}