1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

frontend: check in html, css, js

This commit is contained in:
Adhityaa
2018-06-03 21:36:17 +05:30
parent 5b7b97a4bf
commit a88dea879b
38 changed files with 3153 additions and 4 deletions

View File

@ -0,0 +1,33 @@
(function (global, document) {
// Opens the import window.
global.importOpen = function() {
$(".view").hide();
$("#import-view").show();
}
global.importDisqus = function() {
var url = $("#disqus-url").val();
var data = global.dashboard.$data;
var json = {
session: global.cookieGet("session"),
domain: data.domains[data.cd].domain,
url: url,
}
global.buttonDisable("#disqus-import-button");
global.post(global.origin + "/api/import/disqus", json, function(resp) {
global.buttonEnable("#disqus-import-button");
if (!resp.success) {
global.globalErrorShow(resp.message);
return;
}
globalOKShow("Imported " + resp.numImported + " comments!");
});
}
} (window, document));