aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js')
-rw-r--r--js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js45
1 files changed, 23 insertions, 22 deletions
diff --git a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
index ddccc3d5..33845057 100644
--- a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
+++ b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
@@ -1,24 +1,25 @@
1/* <copyright> 1/* <copyright>
2Copyright (c) 2012, Motorola Mobility, Inc 2Copyright (c) 2012, Motorola Mobility LLC.
3All Rights Reserved. 3All Rights Reserved.
4BSD License.
5 4
6Redistribution and use in source and binary forms, with or without 5Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met: 6modification, are permitted provided that the following conditions are met:
8 7
9 - Redistributions of source code must retain the above copyright notice, 8* Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer. 9 this list of conditions and the following disclaimer.
11 - Redistributions in binary form must reproduce the above copyright 10
12 notice, this list of conditions and the following disclaimer in the 11* Redistributions in binary form must reproduce the above copyright notice,
13 documentation and/or other materials provided with the distribution. 12 this list of conditions and the following disclaimer in the documentation
14 - Neither the name of Motorola Mobility nor the names of its contributors 13 and/or other materials provided with the distribution.
15 may be used to endorse or promote products derived from this software 14
16 without specific prior written permission. 15* Neither the name of Motorola Mobility LLC nor the names of its
16 contributors may be used to endorse or promote products derived from this
17 software without specific prior written permission.
17 18
18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
@@ -202,7 +203,7 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
202 } 203 }
203 } 204 }
204 }, 205 },
205 206
206 pickerModel:{ 207 pickerModel:{
207 enumerable:false, 208 enumerable:false,
208 writable:true, 209 writable:true,
@@ -210,25 +211,25 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
210 }, 211 },
211 212
212 willDraw: { 213 willDraw: {
213 enumerable: false, 214 enumerable: false,
214 value: function() { 215 value: function() {
215 216
216 } 217 }
217 }, 218 },
218 draw: { 219 draw: {
219 enumerable: false, 220 enumerable: false,
220 value: function() { 221 value: function() {
221 this.filterVal.innerHTML = this.pickerModel.currentFilter; 222 this.filterVal.innerHTML = this.pickerModel.currentFilter;
222 223
223 if(this.pickerModel.fatalError !== null){ 224 if(this.pickerModel.fatalError !== null){
224 this.error.innerHTML = this.pickerModel.fatalError; 225 this.error.innerHTML = this.pickerModel.fatalError;
225 } 226 }
226 227
227 } 228 }
228 }, 229 },
229 didDraw: { 230 didDraw: {
230 enumerable: false, 231 enumerable: false,
231 value: function() { 232 value: function() {
232 233
233 var that = this; 234 var that = this;
234 this.iconList = null; 235 this.iconList = null;
@@ -376,7 +377,7 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
376 //ready to show picker now 377 //ready to show picker now
377 this.element.style.visibility = "visible"; 378 this.element.style.visibility = "visible";
378 this.element.focus(); 379 this.element.focus();
379 } 380 }
380 }, 381 },
381 382
382 updateAddressBar:{ 383 updateAddressBar:{
@@ -388,7 +389,7 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
388 addressBarEl.value = folderUri; 389 addressBarEl.value = folderUri;
389 390
390 //update left drive selection 391 //update left drive selection
391 392
392 } 393 }
393 } 394 }
394 }, 395 },