Release Vulpes OS 2.7-preview.22
This commit is contained in:
parent
200d1fb235
commit
a138f97877
294 changed files with 515786 additions and 187 deletions
|
|
@ -429,7 +429,8 @@ var CallHandler = (function callHandler() {
|
|||
// Listening to the keyboard being shown
|
||||
// Waiting for issue 787444 being fixed
|
||||
window.onresize = function(e) {
|
||||
if (window.innerHeight < 440) {
|
||||
if (window.innerHeight < 440 &&
|
||||
document.documentElement.dataset.vulpesLayout !== 'compact') {
|
||||
NavbarManager.hide();
|
||||
} else {
|
||||
NavbarManager.show();
|
||||
|
|
|
|||
|
|
@ -600,7 +600,8 @@
|
|||
|
||||
refreshGridSize: function() {
|
||||
var children = this.icons.children;
|
||||
var cols = this.settings.small ? 4 : 3;
|
||||
var cols = document.documentElement.dataset.vulpesLayout === 'compact' ?
|
||||
3 : (this.settings.small ? 4 : 3);
|
||||
|
||||
var visibleChildren = 0;
|
||||
var firstVisibleChild = -1;
|
||||
|
|
|
|||
|
|
@ -268,8 +268,14 @@ define(function(require) {
|
|||
* @param {Integer} networkSignal
|
||||
*/
|
||||
updateNetworkSignal: function(network, networkSignal) {
|
||||
var li = document.querySelector('li[data-ssid="' + network.ssid + '"]');
|
||||
var icon = li.querySelector('aside');
|
||||
if (!network) { return; }
|
||||
var items = document.querySelectorAll('li[data-ssid]');
|
||||
var li = Array.prototype.find.call(items, function(item) {
|
||||
return item.dataset.ssid === network.ssid;
|
||||
});
|
||||
// Signal updates can arrive before the scan has populated the list.
|
||||
var icon = li && li.querySelector('aside');
|
||||
if (!icon) { return; }
|
||||
// Clean previous state
|
||||
icon.className = icon.className.replace(/level-\w*/, '');
|
||||
var level = Math.min(Math.floor(networkSignal / 20), 4);
|
||||
|
|
|
|||
|
|
@ -1191,6 +1191,18 @@
|
|||
ModalDialog.selectOne(title, options, selected);
|
||||
};
|
||||
|
||||
AppChrome.prototype.onShare = function ac_onShare() {
|
||||
this.hideOverflowMenu();
|
||||
var url = this._currentURL;
|
||||
if (!url || !/^https?:\/\//i.test(url)) {
|
||||
return;
|
||||
}
|
||||
return new MozActivity({
|
||||
name: 'share',
|
||||
data: { type: 'url', url: url }
|
||||
});
|
||||
};
|
||||
|
||||
AppChrome.prototype.showWindows = function ac_showWindows() {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('taskmanagershow',
|
||||
|
|
|
|||
|
|
@ -441,6 +441,11 @@
|
|||
*/
|
||||
focus: function() {
|
||||
if (this.active) {
|
||||
// The keyboard may have been dismissed while this input kept focus.
|
||||
// Refocusing must also notify the host input-method adapter.
|
||||
if (window.VulpesNativeInput && document.activeElement === this.input) {
|
||||
this.input.blur();
|
||||
}
|
||||
this.input.focus();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue