Skip to content

Commit

Permalink
QC Page: Fix "Save View" Button JS code error
Browse files Browse the repository at this point in the history
Put main JS object on 'window' so common "Save View" onclick code can
access it.
  • Loading branch information
danjasuw committed Dec 17, 2021
1 parent 789a743 commit da11b54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class DataPages_LoggedInUser_CommonObjectsFactory {


/**
* Create object of class SaveView_dataPages
* Create object of class SaveView_dataPages AND put it on the 'window' using 'window.saveView_dataPages'
*
*/
instantiate_SaveView_dataPages() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1468,5 +1468,8 @@ searchesChangeDisplayOrder.set_qcMergedPageMain( qcMergedPageMain );

qcMergedPageMain.init();

// Put on 'window' for onclick handler
window.qcMergedPageMainPageObject = qcMergedPageMain;

// Copy to standard page level JS Code Object
// Not currently supported var standardFullPageCode = qcMergedPageMain;
Original file line number Diff line number Diff line change
Expand Up @@ -1365,5 +1365,11 @@ const qcPageMain = new QCPageMain();

qcPageMain.init();

// Put on 'window' for onclick handler
window.qcPageMainPageObject = qcPageMain;


// Copy to standard page level JS Code Object
// Not currently supported var standardFullPageCode = qcPageMain;


0 comments on commit da11b54

Please sign in to comment.