Moved enable/disable download buttons code to a generic method.
Moved enable/disable download buttons code to a generic method.

Changed code to enable/disable Download buttons on Reports tab in Utilization explorer. Buttons were not getting enabled/disabled based upon result data when user sent up tree_select transaction while user was on Reports tab. Existing code was only handling enable/disable of download buttons when switching tabs.

https://bugzilla.redhat.com/show_bug.cgi?id=1113062
https://bugzilla.redhat.com/show_bug.cgi?id=1114659

romaintb/manageiq,borod108/manageiq,ilackarms/manageiq,kbrock/manageiq,fbladilo/manageiq,agrare/manageiq,chessbyte/manageiq,mzazrivec/manageiq,josejulio/manageiq,jntullo/manageiq,agrare/manageiq,andyvesel/manageiq,matobet/manageiq,maas-ufcg/manageiq,jrafanie/manageiq,gmcculloug/manageiq,juliancheal/manageiq,gmcculloug/manageiq,branic/manageiq,gerikis/manageiq,ManageIQ/manageiq,romanblanco/manageiq,ManageIQ/manageiq,chessbyte/manageiq,gmcculloug/manageiq,hstastna/manageiq,pkomanek/manageiq,jameswnl/manageiq,tinaafitz/manageiq,tinaafitz/manageiq,djberg96/manageiq,ailisp/manageiq,fbladilo/manageiq,juliancheal/manageiq,borod108/manageiq,KevinLoiseau/manageiq,ailisp/manageiq,mfeifer/manageiq,jntullo/manageiq,mfeifer/manageiq,KevinLoiseau/manageiq,NaNi-Z/manageiq,d-m-u/manageiq,hstastna/manageiq,NaNi-Z/manageiq,syncrou/manageiq,aufi/manageiq,KevinLoiseau/manageiq,yaacov/manageiq,tzumainn/manageiq,jntullo/manageiq,ilackarms/manageiq,matobet/manageiq,durandom/manageiq,andyvesel/manageiq,syncrou/manageiq,israel-hdez/manageiq,d-m-u/manageiq,NickLaMuro/manageiq,mresti/manageiq,mresti/manageiq,jrafanie/manageiq,djberg96/manageiq,pkomanek/manageiq,djberg96/manageiq,jvlcek/manageiq,mresti/manageiq,lpichler/manageiq,billfitzgerald0120/manageiq,djberg96/manageiq,romaintb/manageiq,gerikis/manageiq,hstastna/manageiq,maas-ufcg/manageiq,yaacov/manageiq,tzumainn/manageiq,NickLaMuro/manageiq,KevinLoiseau/manageiq,maas-ufcg/manageiq,jntullo/manageiq,skateman/manageiq,matobet/manageiq,skateman/manageiq,mfeifer/manageiq,fbladilo/manageiq,branic/manageiq,matobet/manageiq,romaintb/manageiq,chessbyte/manageiq,mkanoor/manageiq,romaintb/manageiq,aufi/manageiq,kbrock/manageiq,tzumainn/manageiq,hstastna/manageiq,billfitzgerald0120/manageiq,tinaafitz/manageiq,aufi/manageiq,ailisp/manageiq,agrare/manageiq,maas-ufcg/manageiq,mkanoor/manageiq,gerikis/manageiq,josejulio/manageiq,tinaafitz/manageiq,skateman/manageiq,skateman/manageiq,romanblanco/manageiq,israel-hdez/manageiq,ilackarms/manageiq,israel-hdez/manageiq,yaacov/manageiq,romanblanco/manageiq,branic/manageiq,tzumainn/manageiq,andyvesel/manageiq,chessbyte/manageiq,agrare/manageiq,kbrock/manageiq,josejulio/manageiq,mresti/manageiq,billfitzgerald0120/manageiq,borod108/manageiq,mzazrivec/manageiq,lpichler/manageiq,ManageIQ/manageiq,NaNi-Z/manageiq,aufi/manageiq,maas-ufcg/manageiq,jameswnl/manageiq,yaacov/manageiq,KevinLoiseau/manageiq,fbladilo/manageiq,jameswnl/manageiq,NickLaMuro/manageiq,gerikis/manageiq,syncrou/manageiq,branic/manageiq,maas-ufcg/manageiq,jvlcek/manageiq,kbrock/manageiq,d-m-u/manageiq,jameswnl/manageiq,andyvesel/manageiq,ilackarms/manageiq,durandom/manageiq,jvlcek/manageiq,israel-hdez/manageiq,syncrou/manageiq,billfitzgerald0120/manageiq,NaNi-Z/manageiq,durandom/manageiq,NickLaMuro/manageiq,romanblanco/manageiq,mkanoor/manageiq,pkomanek/manageiq,ManageIQ/manageiq,d-m-u/manageiq,juliancheal/manageiq,mzazrivec/manageiq,durandom/manageiq,pkomanek/manageiq,romaintb/manageiq,mzazrivec/manageiq,borod108/manageiq,gmcculloug/manageiq,ailisp/manageiq,lpichler/manageiq,mfeifer/manageiq,juliancheal/manageiq,jrafanie/manageiq,jrafanie/manageiq,josejulio/manageiq,romaintb/manageiq,mkanoor/manageiq,lpichler/manageiq,KevinLoiseau/manageiq,jvlcek/manageiq