Skip to content

Commit

Permalink
sync to 0.9.49
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed May 13, 2024
1 parent d38c465 commit 46e5c2e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion htdocs/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.extend({
// receive config from server
if (resp.code) {
app.showProgress( 1.0, "Waiting for manager server..." );
setTimeout( function() { load_script( '/api/app/config?callback=app.receiveConfig' ); }, 1000 );
setTimeout( function() { load_script( '/api/app/config' ); }, 1000 );
return;
}
delete resp.code;
Expand Down
2 changes: 0 additions & 2 deletions htdocs/js/pages/Login.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ Class.subclass( Page.Base, "Page.Login", {

this.div.css({ 'padding-top':'75px', 'padding-bottom':'75px' });
var html = '';
// html += '<iframe name="i_login" id="i_login" src="blank.html" width="1" height="1" style="display:none"></iframe>';
// html += '<form id="f_login" method="post" action="/api/user/login?format=jshtml&callback=window.parent.%24P%28%29.doFrameLogin" target="i_login">';

html += '<div class="inline_dialog_container">';
html += '<div class="dialog_title shade-light">User Login</div>';
Expand Down
8 changes: 4 additions & 4 deletions lib/api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ module.exports = Class.create({
// send config to client
var self = this;

// prevent XSS
args.query.callback = 'app.receiveConfig';


// do not cache this API response
this.forceNoCacheResponse(args);

Expand Down Expand Up @@ -56,7 +54,9 @@ module.exports = Class.create({
};
}

callback(resp);
// wrap response in JavaScript
var payload = 'app.receiveConfig(' + JSON.stringify(resp) + ');' + "\n";
callback( "200 OK", { 'Content-Type': 'text/javascript' }, payload );
}

} );
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"pixl-request": "^1.0.36",
"pixl-server": "^1.0.40",
"pixl-server-api": "^1.0.2",
"pixl-server-storage": "^3.1.12",
"pixl-server-web": "^1.3.30",
"pixl-server-storage": "^3.1.18",
"pixl-server-web": "^2.0.0",
"pixl-tools": "^1.0.29",
"pixl-webapp": "^2.0.2",
"read-last-lines": "^1.8.0",
Expand Down

0 comments on commit 46e5c2e

Please sign in to comment.