Fix deleting tabs
This commit is contained in:
parent
325292c97c
commit
1c34358916
|
@ -105,6 +105,9 @@ _tabbro_ = function() {
|
|||
// Close tab if it's active
|
||||
if(tab.id!=null) {
|
||||
chrome.tabs.remove(tab.id)
|
||||
} else {
|
||||
// Delete from tree
|
||||
this.tree[winindex].tabs.splice(tabindex, 1)
|
||||
}
|
||||
bro.notify()
|
||||
}
|
||||
|
@ -356,6 +359,7 @@ _tabbro_ = function() {
|
|||
|
||||
|
||||
this.save = function() {
|
||||
return
|
||||
// Save data to sync
|
||||
//console.log("save: ")
|
||||
this._storage.set({"tabbro":this.data})
|
||||
|
|
4
popup.js
4
popup.js
|
@ -118,7 +118,7 @@ function renderWindow(windowdata, winnum) {
|
|||
var deletewindow = element('a', {
|
||||
class:"delete",
|
||||
_onclick: function() {
|
||||
//console.log("Delete window #"+winnum)
|
||||
console.log("Delete window #"+winnum)
|
||||
tabbro.ui_delete_window(winnum)
|
||||
repaint()
|
||||
},
|
||||
|
@ -192,7 +192,7 @@ function renderTab(tabdata, tabnum, winnum) {
|
|||
var deletetab = element('a', {
|
||||
class:"delete",
|
||||
_onclick: function() {
|
||||
//console.log("Delete tab #"+tabnum+" in window #"+winnum)
|
||||
console.log("Delete tab #"+tabnum+" in window #"+winnum)
|
||||
tabbro.ui_delete_tab(winnum, tabnum)
|
||||
repaint()
|
||||
},
|
||||
|
|
22
style.css
22
style.css
|
@ -64,10 +64,13 @@ table {
|
|||
/* GLOBAL */
|
||||
body {
|
||||
width: 420px;
|
||||
height: auto;
|
||||
padding: 5px 0px;
|
||||
margin: 0;
|
||||
font-family: Open sans;
|
||||
font-size: 12px;
|
||||
max-height: 700px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,7 +78,7 @@ body {
|
|||
.options {
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
right: 0px;
|
||||
right: 10px;
|
||||
display: none;
|
||||
background-color: #fff;
|
||||
padding: 3px;
|
||||
|
@ -91,7 +94,7 @@ li:hover>.options, li:hover>span>.options {
|
|||
|
||||
|
||||
|
||||
|
||||
/* MAIN TREE */
|
||||
ul#root {
|
||||
|
||||
}
|
||||
|
@ -121,18 +124,3 @@ ul#root > li > ul > li > span {
|
|||
ul#root > li > ul > li:nth-child(2n+1) {
|
||||
background-color: rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ul.window {
|
||||
padding
|
||||
padding-left: 25px;
|
||||
/* list-style: disc;*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue