Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Render common JS variables on all actions if any Cint order is a…
…ctive (used for async update)
- Loading branch information
1 parent
9b84f13
commit 407eb5a
Showing
4 changed files
with
107 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script> | ||
|
||
// Namespace | ||
var LS = LS || {}; | ||
LS.plugin = LS.plugin || {}; | ||
LS.plugin.cintlink = LS.plugin.cintlink || {}; | ||
|
||
LS.plugin.cintlink.pluginBaseUrl = '<?php echo $pluginBaseUrl; ?>'; | ||
|
||
<?php if(isset($surveyId)): ?> | ||
LS.plugin.cintlink.surveyId = '<?php echo $surveyId; ?>'; | ||
<?php endif; ?> | ||
|
||
LS.plugin.cintlink.lang = {} | ||
LS.plugin.cintlink.lang.orderPlacedOnHold = '<?php echo $plugin->gT('Order placed on hold. Please pay to start the review process. Make sure the survey is activated before you pay.'); ?>'; | ||
LS.plugin.cintlink.lang.couldNotLogin = '<?php echo $plugin->gT('Could not login. Please make sure username and password is correct.'); ?>'; | ||
|
||
</script> |