Move request.js and invite.js to /js/compiled

This commit is contained in:
Dmitriy Simushev 2012-11-22 10:08:01 +00:00
parent 35162b8906
commit f085fbc767
5 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@
<java jar="${closure.c}" fork="true">
<arg value="--module_output_path_prefix"/>
<arg value="../"/>
<arg value="../compiled/"/>
<arg value="--module"/>
<arg value="invite:1"/>
<arg value="--js"/>

View File

@ -41,7 +41,7 @@ function generate_button($title, $locale, $style, $invitationstyle, $group, $inn
$temp .= get_app_location($showhost, $forcesecure);
$temp .= '/request.php?entry=\' + escape(document.referrer) + \'&lang=ru\'</script><script type="text/javascript" src="';
$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 -->";
}

View File

@ -48,7 +48,7 @@ if (Settings::get('enabletracking') == '1') {
$response = array();
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['dependences']['mibewInviteOnResponse'] = array('mibewInvitationScript');
$locale = isset($_GET['lang']) ? $_GET['lang'] : '';