| Index: ui/file_manager/gallery/js/slide_mode.js
|
| diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js
|
| index 21d986caae3d10953ad0ab6b0ba15042b9cb7d07..4443fe855e3ef1d47475f957cc57d615a6516c3a 100644
|
| --- a/ui/file_manager/gallery/js/slide_mode.js
|
| +++ b/ui/file_manager/gallery/js/slide_mode.js
|
| @@ -226,34 +226,30 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
|
| * @private
|
| * @const
|
| */
|
| - this.options_ = util.createChild(queryRequiredElement(
|
| - this.topToolbar_, '.filename-spacer'), 'options');
|
| + this.options_ = queryRequiredElement(this.bottomToolbar_, '.options');
|
|
|
| /**
|
| * @type {!HTMLElement}
|
| * @private
|
| * @const
|
| */
|
| - this.savedLabel_ = util.createChild(this.options_, 'saved');
|
| - this.savedLabel_.textContent = this.displayStringFunction_('GALLERY_SAVED');
|
| + this.savedLabel_ = queryRequiredElement(this.options_, '.saved');
|
|
|
| /**
|
| * @type {!HTMLElement}
|
| * @private
|
| * @const
|
| */
|
| - this.overwriteOriginalBox_ = util.createChild(
|
| - this.options_, 'overwrite-original');
|
| + this.overwriteOriginalBox_ = queryRequiredElement(
|
| + this.options_, '.overwrite-original');
|
|
|
| /**
|
| * @type {!HTMLElement}
|
| * @private
|
| * @const
|
| */
|
| - this.overwriteOriginal_ = util.createChild(
|
| - this.overwriteOriginalBox_, '', 'input');
|
| - this.overwriteOriginal_.type = 'checkbox';
|
| - this.overwriteOriginal_.id = 'overwrite-checkbox';
|
| + this.overwriteOriginal_ = queryRequiredElement(
|
| + this.overwriteOriginalBox_, '#overwrite-checkbox')
|
| chrome.storage.local.get(SlideMode.OVERWRITE_KEY, function(values) {
|
| var value = values[SlideMode.OVERWRITE_KEY];
|
| // Out-of-the box default is 'true'
|
| @@ -265,16 +261,6 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
|
|
|
| /**
|
| * @type {!HTMLElement}
|
| - * @const
|
| - */
|
| - var overwriteLabel = util.createChild(
|
| - this.overwriteOriginalBox_, '', 'label');
|
| - overwriteLabel.textContent =
|
| - this.displayStringFunction_('GALLERY_OVERWRITE_ORIGINAL');
|
| - overwriteLabel.setAttribute('for', 'overwrite-checkbox');
|
| -
|
| - /**
|
| - * @type {!HTMLElement}
|
| * @private
|
| * @const
|
| */
|
|
|