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:
parent
e891a10e54
commit
48db062b49
8 changed files with 25 additions and 8 deletions
|
@ -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")
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue