| OLD | NEW |
| 1 // Copyright 2014 The LUCI Authors. All rights reserved. | 1 // Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed by the Apache v2.0 license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 var common = (function() { | 5 var common = (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 var exports = {}; | 8 var exports = {}; |
| 9 var templatesCache = {}; | 9 var templatesCache = {}; |
| 10 | 10 |
| 11 | 11 |
| 12 // Simple string formatter: String.format('{0} {1}', 'a', 'b') -> 'a b'. | 12 // Simple string formatter: String.format('{0} {1}', 'a', 'b') -> 'a b'. |
| 13 // Taken from http://stackoverflow.com/a/4673436 | 13 // Taken from http://stackoverflow.com/a/4673436 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 progressSpinner.show(); | 235 progressSpinner.show(); |
| 236 }); | 236 }); |
| 237 $(document).ajaxStop(function() { | 237 $(document).ajaxStop(function() { |
| 238 progressSpinner.hide(); | 238 progressSpinner.hide(); |
| 239 }); | 239 }); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 | 242 |
| 243 return exports; | 243 return exports; |
| 244 }()); | 244 }()); |
| OLD | NEW |