Skip to content

Commit

Permalink
Merge pull request #3 from matthewekeller/djangoIntegration
Browse files Browse the repository at this point in the history
Version 1.7 integration with Django csrf token.  Allows csrf parameter
  • Loading branch information
matthewekeller authored Nov 22, 2021
2 parents 290366b + 10c28d2 commit 4a16033
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions desktopContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
// See license file for more details

// version 1.7 11/19/2021

// hash change event management
var currentHashId = "";
var lastHashId = "";
Expand Down
2 changes: 2 additions & 0 deletions domUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
// See license file for more details

// version 1.7 11/19/2021

function DomUtil(){
var me = this;

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Copyright 2021 to WebRocketX under the
GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
See license file for more details

Version 1.6
Version 1.7
6 changes: 3 additions & 3 deletions webRocketXStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
See license file for more details
*/

/* version 1.7 11/19/2021 */

.BDT_Dialog_Layer {
position: absolute;
display: table;
Expand Down Expand Up @@ -54,6 +56,4 @@ div.BlockInteractionWithPage {
filter: alpha(opacity=0); /* filter:alpha for IE8 and earlier */
height: 100%;
width: 100%;
}


}
10 changes: 8 additions & 2 deletions webapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
// See license file for more details

// version 1.7 11/19/2021

function AsyncRequest() {
this.successCallbackReference = null;
this.failureCallbackReference = null;
Expand Down Expand Up @@ -409,8 +411,12 @@ function Webapi() {
changeDisplayForProgress();

var parameterList=parameters;
if ( (typeof pageLoadTimeStamp != "undefined")&&(pageLoadTimeStamp!="") ) {
parameterList = parameterList+"&pageLoadTimeStamp="+pageLoadTimeStamp;
if ( (typeof pageLoadTimeStamp != "undefined")&&(pageLoadTimeStamp!="") ) {
var csrfTokenName = "pageLoadTimeStamp";
if ( (typeof pageLoadTimeStampParamName != "undefined")&&(pageLoadTimeStampParamName!="") ) {
csrfTokenName=pageLoadTimeStampParamName;
}
parameterList = parameterList+"&"+csrfTokenName+"="+pageLoadTimeStamp;
}
var sendMethod = "post";
if (staticPage) {
Expand Down

0 comments on commit 4a16033

Please sign in to comment.