Fixed date parsing bug in index.js introduced since last commit.
Removed debugging console.log() call in browsing-engine.js. git-svn-id: http://google-refine.googlecode.com/svn/trunk@200 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
1dc3d4abbd
commit
3e0ac50e17
@ -17,7 +17,7 @@ import org.json.JSONObject;
|
|||||||
import org.json.JSONTokener;
|
import org.json.JSONTokener;
|
||||||
|
|
||||||
public class ParsingUtilities {
|
public class ParsingUtilities {
|
||||||
static public SimpleDateFormat s_sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
|
static public SimpleDateFormat s_sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
|
||||||
|
|
||||||
static public String inputStreamToString(InputStream is) throws IOException {
|
static public String inputStreamToString(InputStream is) throws IOException {
|
||||||
Reader reader = new InputStreamReader(is, "UTF-8");
|
Reader reader = new InputStreamReader(is, "UTF-8");
|
||||||
|
@ -33,7 +33,7 @@ function renderProjects(data) {
|
|||||||
if (data.projects.hasOwnProperty(n)) {
|
if (data.projects.hasOwnProperty(n)) {
|
||||||
var project = data.projects[n];
|
var project = data.projects[n];
|
||||||
project.id = n;
|
project.id = n;
|
||||||
project.date = new Date(project.modified);
|
project.date = Date.parseExact(project.modified, "yyyy-MM-ddTHH:mm:ssZ");
|
||||||
projects.push(project);
|
projects.push(project);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ BrowsingEngine.prototype.removeFacet = function(facet) {
|
|||||||
for (var i = this._facets.length - 1;i >= 0; i--) {
|
for (var i = this._facets.length - 1;i >= 0; i--) {
|
||||||
if (this._facets[i].facet === facet) {
|
if (this._facets[i].facet === facet) {
|
||||||
this._facets[i].elmt.remove();
|
this._facets[i].elmt.remove();
|
||||||
this._facets.splice(i, 1);console.log("removed");
|
this._facets.splice(i, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user