Update modal download dialogs for sdk/ndk download.

Revise the redirect behavior once download completes.
Add more appropriate title and download message when installing SDK tools only.
Force refresh when the Studio download dialog is dismissed, to avoid leaving the dialog in stale state.
Add styles for the Studio download page.

Change-Id: Ibc4ddb4a6130ab8bd8d6044472022465829f2000
This commit is contained in:
Dirk Dougherty
2016-01-28 08:32:47 -08:00
committed by smain@google.com
parent 0d268bea3c
commit c607a4d4d5
6 changed files with 431 additions and 333 deletions

View File

@@ -3891,6 +3891,11 @@ switch (window.getLangPref()) {
this.el.removeClass('dac-active');
$('body').removeClass('dac-modal-open');
this.isOpen = false;
// When closing the modal for Android Studio downloads, reload the page
// because otherwise we might get stuck with post-download dialog state
if ($("[data-modal='studio_tos']").length) {
location.reload();
}
};
Modal.prototype.open_ = function() {