Allow form to stay modal after uploading file
Allow form to stay modal after uploading file

Use HTML5 FormData browser API together with FileList API to make
possible AJAX file uploads (see http://tinyurl.com/kmznw2n on FormData
examples). Feature detection is the same as in jQuery Form Plugin (see
http://tinyurl.com/n6v5dsx). Browsers without FormData support (most
importantly, IE<10) do not support setting custom AJAX request
headers, so form with File Upload field will lose modality in them
anyway.

Change-Id: Id3b91a49a71c6de314c6a7cbee5357fe13679490
Closes-Bug: #1158501

django-leonardo/horizon,VaneCloud/horizon,yjxtogo/horizon,BiznetGIO/horizon,blueboxgroup/horizon,bigswitch/horizon,VaneCloud/horizon,orbitfp7/horizon,dan1/horizon-x509,openstack/horizon,redhat-cip/horizon,mdavid/horizon,watonyweng/horizon,CiscoSystems/horizon,agileblaze/OpenStackTwoFactorAuthentication,ging/horizon,xinwu/horizon,RudoCris/horizon,philoniare/horizon,Daniex/horizon,bac/horizon,yeming233/horizon,tsufiev/horizon,eayunstack/horizon,doug-fish/horizon,redhat-cip/horizon,NeCTAR-RC/horizon,NCI-Cloud/horizon,karthik-suresh/horizon,mrunge/openstack_horizon,watonyweng/horizon,promptworks/horizon,dan1/horizon-proto,gerrive/horizon,xme1226/horizon,flochaz/horizon,endorphinl/horizon-fork,NCI-Cloud/horizon,Mirantis/mos-horizon,Metaswitch/horizon,blueboxgroup/horizon,xinwu/horizon,vladryk/horizon,anthonydillon/horizon,tellesnobrega/horizon,redhat-openstack/horizon,tqtran7/horizon,FNST-OpenStack/horizon,anthonydillon/horizon,BiznetGIO/horizon,coreycb/horizon,tqtran7/horizon,sandvine/horizon,Solinea/horizon,Hodorable/0602,izadorozhna/dashboard_integration_tests,promptworks/horizon,RudoCris/horizon,wolverineav/horizon,mdavid/horizon,mrunge/horizon_lib,newrocknj/horizon,django-leonardo/horizon,henaras/horizon,philoniare/horizon,gerrive/horizon,liyitest/rr,karthik-suresh/horizon,pranavtendolkr/horizon,NeCTAR-RC/horizon,j4/horizon,damien-dg/horizon,coreycb/horizon,bigswitch/horizon,saydulk/horizon,mrunge/horizon,pranavtendolkr/horizon,newrocknj/horizon,kfox1111/horizon,openstack/horizon,Tesora/tesora-horizon,zouyapeng/horizon,izadorozhna/dashboard_integration_tests,nvoron23/avos,xme1226/horizon,endorphinl/horizon-fork,flochaz/horizon,eayunstack/horizon,tsufiev/horizon,ChameleonCloud/horizon,damien-dg/horizon,flochaz/horizon,Solinea/horizon,zouyapeng/horizon,dan1/horizon-proto,blueboxgroup/horizon,j4/horizon,yeming233/horizon,promptworks/horizon,dan1/horizon-x509,doug-fish/horizon,takeshineshiro/horizon,damien-dg/horizon,VaneCloud/horizon,Mirantis/mos-horizon,NCI-Cloud/horizon,bac/horizon,idjaw/horizon,redhat-openstack/horizon,Daniex/horizon,maestro-hybrid-cloud/horizon,Daniex/horizon,pranavtendolkr/horizon,henaras/horizon,CiscoSystems/avos,ChameleonCloud/horizon,RudoCris/horizon,CiscoSystems/avos,maestro-hybrid-cloud/horizon,vladryk/horizon,CiscoSystems/horizon,openstack/horizon,xinwu/horizon,Solinea/horizon,endorphinl/horizon,django-leonardo/horizon,mrunge/openstack_horizon,mrunge/horizon,agileblaze/OpenStackTwoFactorAuthentication,yjxtogo/horizon,sandvine/horizon,wangxiangyu/horizon,ging/horizon,orbitfp7/horizon,icloudrnd/automation_tools,icloudrnd/automation_tools,maestro-hybrid-cloud/horizon,redhat-cip/horizon,wangxiangyu/horizon,philoniare/horizon,tqtran7/horizon,takeshineshiro/horizon,maestro-hybrid-cloud/horizon,Metaswitch/horizon,FNST-OpenStack/horizon,VaneCloud/horizon,gerrive/horizon,orbitfp7/horizon,wangxiangyu/horizon,nvoron23/avos,kfox1111/horizon,davidcusatis/horizon,Tesora/tesora-horizon,mandeepdhami/horizon,FNST-OpenStack/horizon,liyitest/rr,idjaw/horizon,kfox1111/horizon,davidcusatis/horizon,xme1226/horizon,liyitest/rr,bac/horizon,django-leonardo/horizon,Hodorable/0602,watonyweng/horizon,karthik-suresh/horizon,kfox1111/horizon,froyobin/horizon,Solinea/horizon,noironetworks/horizon,Mirantis/mos-horizon,endorphinl/horizon,RudoCris/horizon,ChameleonCloud/horizon,doug-fish/horizon,newrocknj/horizon,Dark-Hacker/horizon,BiznetGIO/horizon,luhanhan/horizon,icloudrnd/automation_tools,redhat-openstack/horizon,Mirantis/mos-horizon,endorphinl/horizon-fork,nvoron23/avos,FNST-OpenStack/horizon,dan1/horizon-proto,mandeepdhami/horizon,CiscoSystems/avos,icloudrnd/automation_tools,orbitfp7/horizon,noironetworks/horizon,ChameleonCloud/horizon,NCI-Cloud/horizon,redhat-cip/horizon,Dark-Hacker/horizon,ging/horizon,henaras/horizon,luhanhan/horizon,anthonydillon/horizon,dan1/horizon-x509,agileblaze/OpenStackTwoFactorAuthentication,wolverineav/horizon,philoniare/horizon,tellesnobrega/horizon,newrocknj/horizon,Dark-Hacker/horizon,liyitest/rr,tsufiev/horizon,saydulk/horizon,saydulk/horizon,saydulk/horizon,Tesora/tesora-horizon,j4/horizon,nvoron23/avos,henaras/horizon,xinwu/horizon,vladryk/horizon,noironetworks/horizon,Metaswitch/horizon,takeshineshiro/horizon,mrunge/horizon_lib,tellesnobrega/horizon,bigswitch/horizon,redhat-openstack/horizon,mrunge/openstack_horizon,Metaswitch/horizon,openstack/horizon,damien-dg/horizon,CiscoSystems/horizon,yjxtogo/horizon,bac/horizon,mandeepdhami/horizon,Hodorable/0602,zouyapeng/horizon,zouyapeng/horizon,promptworks/horizon,tqtran7/horizon,takeshineshiro/horizon,dan1/horizon-x509,pranavtendolkr/horizon,coreycb/horizon,coreycb/horizon,luhanhan/horizon,mrunge/horizon_lib,mandeepdhami/horizon,NeCTAR-RC/horizon,yeming233/horizon,ging/horizon,yjxtogo/horizon,sandvine/horizon,davidcusatis/horizon,watonyweng/horizon,j4/horizon,idjaw/horizon,mrunge/horizon,Tesora/tesora-horizon,froyobin/horizon,NeCTAR-RC/horizon,luhanhan/horizon,mdavid/horizon,blueboxgroup/horizon,CiscoSystems/horizon,anthonydillon/horizon,idjaw/horizon,Hodorable/0602,sandvine/horizon,vladryk/horizon,dan1/horizon-proto,wolverineav/horizon,tsufiev/horizon,bigswitch/horizon,flochaz/horizon,endorphinl/horizon,CiscoSystems/avos,endorphinl/horizon,froyobin/horizon,gerrive/horizon,BiznetGIO/horizon,tellesnobrega/horizon,karthik-suresh/horizon,davidcusatis/horizon,Dark-Hacker/horizon,noironetworks/horizon,mdavid/horizon,wolverineav/horizon,wangxiangyu/horizon,yeming233/horizon,endorphinl/horizon-fork,agileblaze/OpenStackTwoFactorAuthentication,doug-fish/horizon,eayunstack/horizon,Daniex/horizon