Rev966, Display user quota in sidebar, Fix non-root content.json publishing in sidebar, Publish to same ammount of passive peers as limit, Fix site address case bug

This commit is contained in:
HelloZeroNet 2016-03-09 15:30:04 +01:00
parent e891a10e54
commit 48db062b49
8 changed files with 25 additions and 8 deletions

View file

@ -315,7 +315,7 @@ class Sidebar extends Class
# Publish content.json
@tag.find("#button-publish").off("click").on "click", =>
inner_path = @tag.find("#select-contents").val()
inner_path = @tag.find("#input-contents").val()
@tag.find("#button-publish").addClass "loading"
wrapper.ws.cmd "sitePublish", {"inner_path": inner_path, "sign": false}, =>
@tag.find("#button-publish").removeClass "loading"
@ -360,6 +360,7 @@ class Sidebar extends Class
@globe.createPoints()
@globe.animate()
catch e
console.log "WebGL error", e
@tag.find(".globe").addClass("error").text("WebGL not supported")
@tag.find(".globe").removeClass("loading")

View file

@ -551,7 +551,7 @@ window.initScrollable = function () {
this.tag.find("#button-publish").off("click").on("click", (function(_this) {
return function() {
var inner_path;
inner_path = _this.tag.find("#select-contents").val();
inner_path = _this.tag.find("#input-contents").val();
_this.tag.find("#button-publish").addClass("loading");
return wrapper.ws.cmd("sitePublish", {
"inner_path": inner_path,
@ -620,6 +620,7 @@ window.initScrollable = function () {
_this.globe.animate();
} catch (_error) {
e = _error;
console.log("WebGL error", e);
_this.tag.find(".globe").addClass("error").text("WebGL not supported");
}
}