Fix deleting windows
This commit is contained in:
parent
1c34358916
commit
3e1298302b
|
@ -119,7 +119,7 @@ _tabbro_ = function() {
|
|||
|
||||
// If the window isn't loaded, delete it
|
||||
if(window.id==null) {
|
||||
this.t_removeWindow(window.id)
|
||||
this.tree.splice(winindex, 1)
|
||||
} else {
|
||||
// If the window is loaded, close it and the events fired will take care of cleanup
|
||||
chrome.windows.remove(window.id)
|
||||
|
@ -359,12 +359,11 @@ _tabbro_ = function() {
|
|||
|
||||
|
||||
this.save = function() {
|
||||
return
|
||||
// Save data to sync
|
||||
//console.log("save: ")
|
||||
// Save data to chrome
|
||||
this._storage.set({"tabbro":this.data})
|
||||
}
|
||||
|
||||
|
||||
this.addListeners = function() {
|
||||
bro = this
|
||||
|
||||
|
|
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()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue