Revert "Popout inbox"

This reverts commit 31e7d285e3.

This seemed like a nice feature, but the popup bubble isn't very
conducive to nontrivial user inputs, e.g. file inputs.

Fixes #211
This commit is contained in:
lilia 2015-03-23 11:19:02 -07:00
parent 06f4d4456d
commit 5ffa265559
9 changed files with 4 additions and 52 deletions

View File

@ -153,7 +153,6 @@
<script type="text/x-tmpl-mustache" id="inbox">
<div class='title-bar' id='header'>
<div class='socket-status'></div>
<button class='popout hide'></button>
</div>
<div class='gutter'>
<div class='conversations scrollable'></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 B

View File

@ -65,6 +65,8 @@
});
});
extension.browserAction(window.openInbox);
// refresh views
var views = extension.windows.getViews();
for (var i = 0; i < views.length; ++i) {

View File

@ -20,23 +20,10 @@
window.Whisper = window.Whisper || {};
if (bg.textsecure.storage.getUnencrypted("number_id") === undefined) {
extension.navigator.tabs.create('/options.html');
window.close();
window.location = '/options.html';
} else {
new bg.Whisper.InboxView().$el.prependTo(bg.$('body',document));
bg.textsecure.storage.putUnencrypted("unreadCount", 0);
extension.navigator.setBadgeText("");
window.addEventListener('beforeunload', function () {
chrome.browserAction.setPopup({popup: 'index.html'}); // pop in
});
extension.windows.getCurrent(function (windowInfo) {
if (windowInfo.type === 'normal') {
bg.$('body', document).addClass('pop-in');
} else {
bg.$('.popout', document).remove();
}
});
}
}());

View File

@ -133,12 +133,6 @@
}
};
window.popoutInbox = function() {
chrome.browserAction.setPopup({popup: ''});
extension.browserAction(window.openInbox);
window.openInbox();
};
// make sure windows are cleaned up on close
extension.windows.onClosed(function (windowId) {
if (windowMap.windowId[windowId]) {

View File

@ -80,10 +80,6 @@
events: {
'click .fab': 'showCompose',
'select .contact': 'openConversation',
'click .popout': 'popout'
},
popout: function() {
bg.popoutInbox();
},
openConversation: function(e, data) {
bg.openConversation(data.modelId);

View File

@ -16,8 +16,7 @@
"default_icon": {
"19": "images/icon.png"
},
"default_title": "TextSecure",
"default_popup": "index.html"
"default_title": "TextSecure"
},
"background": {

View File

@ -95,11 +95,6 @@ input.search {
}
.index {
&.pop-in {
min-height: 330px;
min-width: 260px;
}
color: $grey_d;
background: #eee;
@ -141,12 +136,3 @@ input.search {
font-weight: bold;
}
}
.popout {
float: right;
background: url('/images/popout.png') no-repeat center center;
display: none;
}
.title-bar:hover .popout {
display: inline-block;
}

View File

@ -320,9 +320,6 @@ input.search {
.index {
color: #454545;
background: #eee; }
.index.pop-in {
min-height: 330px;
min-width: 260px; }
.index .new-group-update-form {
display: none;
padding: 0.5em; }
@ -349,14 +346,6 @@ input.search {
.conversations .unread .contact-details .last-timestamp {
font-weight: bold; }
.popout {
float: right;
background: url("/images/popout.png") no-repeat center center;
display: none; }
.title-bar:hover .popout {
display: inline-block; }
.conversation {
padding: 36px 0; }
.conversation .file-input .close {