Commit 8bc55afa authored by Tamas Kis's avatar Tamas Kis
Browse files

[internal #1720434] Minor bugfixes + SVG displays

parent 54a32af0
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -56,17 +56,19 @@ function CDsRestAPIComm(p_extension) {
                    $('#cll_DsRestAPI_error').addClass("hidden");
                    if (data && data !== "" && data !== " ")
                    {
                        var contentlist;
                        try {
                            var contentlist = JSON.parse(data).contentList;
                            contentlist = JSON.parse(data).contentList;
                        } catch (e) {
                            mThis.handleError("Badly encoded response received from server", e.message, aHandler, end, start);
                            return;
                        }
                        if (contentlist.length == 1 && contentlist[0].node != undefined && contentlist[0].node.val == "timeout")
                        {
                            mThis.handleError("Timeout received from server", "Overload", aHandler, end, start);
                        }
                        else
                            aHandler(contentlist);
                        } catch (e) {
                            mThis.handleError("Badly encoded response received from server", e.message, aHandler, end, start);
                        }
                    }
                    else
                        aHandler(mNoAnswer);
+6 −0
Original line number Diff line number Diff line
@@ -105,6 +105,9 @@
                        "ptcname": {
                            "type": "string"
                        },
                        "clientSideCache": {
                            "type": "boolean"
                        },
                        "element": {
                            "type": "string"
                        },
@@ -194,6 +197,9 @@
                        "ptcname": {
                            "type": "string"
                        },
                        "clientSideCache": {
                            "type": "boolean"
                        },
                        "element": {
                            "type": "string"
                        },
+4 −0
Original line number Diff line number Diff line
@@ -71,6 +71,8 @@ components:
              type: string
            ptcname:
              type: string
            clientSideCache:
              type: boolean
            element:
              type: string
            params:
@@ -125,6 +127,8 @@ components:
              type: string
            ptcname:
              type: string
            clientSideCache:
              type: boolean
            element:
              type: string
            content:
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ function FileHandler() {
            url: url,
            type: 'LSDIR',
            success: function(aData) {callback(JSON.parse(aData).fileList.sort());},
            error: function(aData) {callback(0);},
            data: "",
            dataType: 'text',
            contentType: 'text',
+6 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ function uniq(list) {

window.jsErrors = [];

if (!window.onerror) {
/*if (!window.onerror) {
    window.onerror = function(error, url, line, ch, ex) {
        "use strict";
        var errorMessage = 'Error caught in global context: "{0}", URL: {1}, Line {2}, char index {3} (w/o indent, usually).'.format(error, url, line, ch);
@@ -46,7 +46,7 @@ if (!window.onerror) {
        window.jsErrors[window.jsErrors.length] = stack;
        return true; // handled.
    };
}
}*/

/** mpad - converts a number to string and pads it with leading zeroes */
function mpad(num, size) {
@@ -295,4 +295,8 @@ function a2hex(str) {
    return arr.join('');
}

function replaceAt(str, index, replacement) {
    return str.substr(0, index) + replacement+ str.substr(index + replacement.length);
}

//# sourceURL=Utils\Utilities.js
Loading