Skip to content

Commit

Permalink
fix open-close tab bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PDE3056 committed Mar 21, 2014
1 parent 4c12101 commit bcfc11e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/main/java/fr/warlog/web/FileServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
import javax.servlet.http.HttpServletResponse;

import fr.warlog.bus.FileMgt;
import fr.warlog.util.Data;
import fr.warlog.util.JSONUtils;
import fr.warlog.util.StandardException;

/**
* read a file, & returns as lines | raw data
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/fr/warlog/web/PushServlet.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.warlog.web;

import java.io.IOException;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

Expand All @@ -21,7 +20,7 @@
public class PushServlet extends HttpServlet {

private static final Map<String, Object> events = new Hashtable<>();
private static final long TIME_OUT = 10* 60_000;
protected static final long TIME_OUT = 10* 60_000;

public static void pushEvent(String event,Object o){
events.put(event,o);
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/app/controller/FileController.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ Ext.define('app.controller.FileController', {
},
tabclose: function(tab){
console.log("tabclose");
if(this.tabs[tab.key]){
this.getStore('Links').remove(this.tabs[tab.key].link);
this.tabs[tab.key]=null;
if(this.tabs[tab.text]){
this.getStore('Links').remove(this.tabs[tab.text].link);
this.tabs[tab.text]=null;
}
this.getStore('Links').sync();
this.fireReload=true;
Expand Down

0 comments on commit bcfc11e

Please sign in to comment.