Commit 52751d4f authored by jan.koester's avatar jan.koester
Browse files

test

parent 5c3d72c0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -50,6 +50,11 @@ var Preview = (function() {
                addField('authid', data.authid);
                addField('html', data.html);

                // Send selected color scheme to blog's /render
                var colorScheme = document.getElementById('theme-select').value || 'dark';
                addField('_color_mode', 'theme');
                addField('_color_scheme', colorScheme);

                document.body.appendChild(form);
                form.submit();
                document.body.removeChild(form);
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ bool webedit::Api::handleRequest(libhttppp::HttpRequest &curreq, const int tid,

    // Route: /api/connection/media/{connId} (POST) — proxy media commands to blog
    if (path.find("/api/connection/media/") == 0) {
        std::string connId = path.substr(21);
        std::string connId = path.substr(22);
        handleMediaBrowse(curreq, sessionid, connId);
        return true;
    }