diff options
author | dhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 20:24:55 +0000 |
---|---|---|
committer | dhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 20:24:55 +0000 |
commit | c9c8f440e4e80a289f65a841bd11aab9bcf44f47 (patch) | |
tree | cec11cd3d3e714b1694399527509dbe8e04064fb /chrome/browser/resources/filebrowse.html | |
parent | 55050e7cdd1f725e3e50a75c31f1204dc8f4cd37 (diff) | |
download | chromium_src-c9c8f440e4e80a289f65a841bd11aab9bcf44f47.zip chromium_src-c9c8f440e4e80a289f65a841bd11aab9bcf44f47.tar.gz chromium_src-c9c8f440e4e80a289f65a841bd11aab9bcf44f47.tar.bz2 |
Fixing upload case to picasaweb.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1591036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/filebrowse.html')
-rw-r--r-- | chrome/browser/resources/filebrowse.html | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/chrome/browser/resources/filebrowse.html b/chrome/browser/resources/filebrowse.html index 38e7f55..b57c458 100644 --- a/chrome/browser/resources/filebrowse.html +++ b/chrome/browser/resources/filebrowse.html @@ -35,6 +35,23 @@ div.header { cursor: pointer; } +.status { + position: absolute; + display: none; + bottom: 0; + left: 0; + right: 0; + height: 24px; + border-top-color: #999; + border-top-width: 1px; + padding-top: 6px; + padding-left: 10px; + background-image: -webkit-gradient(linear, + left top, + left bottom, + from(#D0DAF8), + to(#A6BAF7)); +} .deleteYes { width: 40px; height: 30px; @@ -1279,13 +1296,13 @@ function clearMenus() { }; function uploadImage(path) { - /* - if (foundImages[path]) { - var element = foundImages[path]; - element.onclick = undefined; - element.className = 'uploadprogress'; - } - chrome.send('uploadToPicasaweb', [path]);*/ + var status = $('status'); + status.style.display = 'block'; + var extracted = getPathAndFilenameForPath(path); + var main = $('dir/' + extracted[1]); + main.style.bottom = '30px'; + status.textContent = 'Uploading'; + chrome.send('uploadToPicasaweb', [path]); } function showMenu(path) { @@ -1303,16 +1320,12 @@ function showMenu(path) { } function uploadComplete(result) { - /* - if (foundImages[result.path]) { - var element = foundImages[result.path]; - element.className = 'uploadcomplete'; - if (result.status_code == 201) { - element.innerHTML = '<a href=' + result.url + '>Uploaded</a>'; - } else { - element.textContent = 'Error'; - } - }*/ + var element = $('status'); + if (result.status_code == 201) { + element.innerHTML = '<a href=' + result.url + ' target="_blank">Uploaded</a>'; + } else { + element.textContent = 'Error'; + } } function findInArray(arr, element) { @@ -1508,5 +1521,6 @@ function createNewList(title, results, main, path) { <div id='currenttitle' class=''></div> </div><br> <div id='main' class='container'></div> +<div id='status' class='status'></div> </body> </html> |