| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Namespace for utility functions. | 6 * Namespace for utility functions. |
| 7 */ | 7 */ |
| 8 var filelist = {}; | 8 var filelist = {}; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 this.timeFormatter_.format(modTime)); | 294 this.timeFormatter_.format(modTime)); |
| 295 } else { | 295 } else { |
| 296 div.textContent = | 296 div.textContent = |
| 297 this.dateFormatter_.format(filesystemProps.modificationTime); | 297 this.dateFormatter_.format(filesystemProps.modificationTime); |
| 298 } | 298 } |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 /** | 301 /** |
| 302 * Updates the file metadata in the table item. | 302 * Updates the file metadata in the table item. |
| 303 * | 303 * |
| 304 * @param {Element} item Table item, | 304 * @param {Element} item Table item. |
| 305 * @param {Entry} entry File entry, | 305 * @param {Entry} entry File entry. |
| 306 */ | 306 */ |
| 307 FileTable.prototype.updateFileMetadata = function(item, entry) { | 307 FileTable.prototype.updateFileMetadata = function(item, entry) { |
| 308 var props = this.metadataCache_.getCached(entry, 'filesystem'); | 308 var props = this.metadataCache_.getCached(entry, 'filesystem'); |
| 309 this.updateDate_(item.querySelector('.date'), props); | 309 this.updateDate_(item.querySelector('.date'), props); |
| 310 this.updateSize_(item.querySelector('.size'), entry, props); | 310 this.updateSize_(item.querySelector('.size'), entry, props); |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 /** | 313 /** |
| 314 * Render the Available offline column of the detail table. | 314 * Render the Available offline column of the detail table. |
| 315 * | 315 * |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 break; | 682 break; |
| 683 } | 683 } |
| 684 } | 684 } |
| 685 if (url) { | 685 if (url) { |
| 686 iconDiv.style.backgroundImage = 'url(' + url + ')'; | 686 iconDiv.style.backgroundImage = 'url(' + url + ')'; |
| 687 } else { | 687 } else { |
| 688 iconDiv.style.backgroundImage = null; | 688 iconDiv.style.backgroundImage = null; |
| 689 } | 689 } |
| 690 } | 690 } |
| 691 }; | 691 }; |
| OLD | NEW |