Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: ui/file_manager/gallery/js/gallery.js

Issue 490113002: Gallery: Disable name input when the selection is empty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * Called from the main frame when unloading. 8 * Called from the main frame when unloading.
9 * @param {boolean=} opt_exiting True if the app is exiting. 9 * @param {boolean=} opt_exiting True if the app is exiting.
10 */ 10 */
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 } else { 863 } else {
864 document.title = ''; 864 document.title = '';
865 } 865 }
866 this.filenameEdit_.disabled = true; 866 this.filenameEdit_.disabled = true;
867 this.filenameEdit_.value = 867 this.filenameEdit_.value =
868 strf('GALLERY_ITEMS_SELECTED', numSelectedItems); 868 strf('GALLERY_ITEMS_SELECTED', numSelectedItems);
869 this.shareButton_.hidden = true; 869 this.shareButton_.hidden = true;
870 } 870 }
871 } else { 871 } else {
872 document.title = ''; 872 document.title = '';
873 this.filenameEdit_.disabled = true;
873 this.filenameEdit_.value = ''; 874 this.filenameEdit_.value = '';
874 this.shareButton_.hidden = true; 875 this.shareButton_.hidden = true;
875 } 876 }
876 877
877 util.updateAppState( 878 util.updateAppState(
878 null, // Keep the current directory. 879 null, // Keep the current directory.
879 selectedEntryURL, // Update the selection. 880 selectedEntryURL, // Update the selection.
880 {gallery: (this.currentMode_ === this.mosaicMode_ ? 'mosaic' : 'slide')}); 881 {gallery: (this.currentMode_ === this.mosaicMode_ ? 'mosaic' : 'slide')});
881 }; 882 };
882 883
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 window.loadTimeData.data = backgroundComponents.stringData; 1016 window.loadTimeData.data = backgroundComponents.stringData;
1016 gallery = new Gallery(backgroundComponents.volumeManager); 1017 gallery = new Gallery(backgroundComponents.volumeManager);
1017 }; 1018 };
1018 1019
1019 /** 1020 /**
1020 * Loads entries. 1021 * Loads entries.
1021 */ 1022 */
1022 window.loadEntries = function(entries, selectedEntries) { 1023 window.loadEntries = function(entries, selectedEntries) {
1023 gallery.load(entries, selectedEntries); 1024 gallery.load(entries, selectedEntries);
1024 }; 1025 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698