mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Move request.js and invite.js to /js/compiled
This commit is contained in:
parent
35162b8906
commit
f085fbc767
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
<java jar="${closure.c}" fork="true">
|
<java jar="${closure.c}" fork="true">
|
||||||
<arg value="--module_output_path_prefix"/>
|
<arg value="--module_output_path_prefix"/>
|
||||||
<arg value="../"/>
|
<arg value="../compiled/"/>
|
||||||
<arg value="--module"/>
|
<arg value="--module"/>
|
||||||
<arg value="invite:1"/>
|
<arg value="invite:1"/>
|
||||||
<arg value="--js"/>
|
<arg value="--js"/>
|
||||||
|
@ -41,7 +41,7 @@ function generate_button($title, $locale, $style, $invitationstyle, $group, $inn
|
|||||||
$temp .= get_app_location($showhost, $forcesecure);
|
$temp .= get_app_location($showhost, $forcesecure);
|
||||||
$temp .= '/request.php?entry=\' + escape(document.referrer) + \'&lang=ru\'</script><script type="text/javascript" src="';
|
$temp .= '/request.php?entry=\' + escape(document.referrer) + \'&lang=ru\'</script><script type="text/javascript" src="';
|
||||||
$temp .= get_app_location($showhost, $forcesecure);
|
$temp .= get_app_location($showhost, $forcesecure);
|
||||||
$temp .= '/js/request.js"></script><script type="text/javascript">mibewMakeRequest();</script>';
|
$temp .= '/js/compiled/request.js"></script><script type="text/javascript">mibewMakeRequest();</script>';
|
||||||
}
|
}
|
||||||
return "<!-- mibew button -->" . $temp . "<!-- / mibew button -->";
|
return "<!-- mibew button -->" . $temp . "<!-- / mibew button -->";
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ if (Settings::get('enabletracking') == '1') {
|
|||||||
|
|
||||||
$response = array();
|
$response = array();
|
||||||
if ($invited !== FALSE) {
|
if ($invited !== FALSE) {
|
||||||
$response['load']['mibewInvitationScript'] = get_app_location(true, is_secure_request()) . '/js/invite.js';
|
$response['load']['mibewInvitationScript'] = get_app_location(true, is_secure_request()) . '/js/compiled/invite.js';
|
||||||
$response['handlers'][] = 'mibewInviteOnResponse';
|
$response['handlers'][] = 'mibewInviteOnResponse';
|
||||||
$response['dependences']['mibewInviteOnResponse'] = array('mibewInvitationScript');
|
$response['dependences']['mibewInviteOnResponse'] = array('mibewInvitationScript');
|
||||||
$locale = isset($_GET['lang']) ? $_GET['lang'] : '';
|
$locale = isset($_GET['lang']) ? $_GET['lang'] : '';
|
||||||
|
Loading…
Reference in New Issue
Block a user