From f085fbc767effd1c142763be25ee2abd92c02ed5 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 22 Nov 2012 10:08:01 +0000 Subject: [PATCH] Move request.js and invite.js to /js/compiled --- src/messenger/webim/js/{ => compiled}/invite.js | 0 src/messenger/webim/js/{ => compiled}/request.js | 0 src/messenger/webim/js/source/build.xml | 2 +- src/messenger/webim/libs/getcode.php | 2 +- src/messenger/webim/request.php | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename src/messenger/webim/js/{ => compiled}/invite.js (100%) rename src/messenger/webim/js/{ => compiled}/request.js (100%) diff --git a/src/messenger/webim/js/invite.js b/src/messenger/webim/js/compiled/invite.js similarity index 100% rename from src/messenger/webim/js/invite.js rename to src/messenger/webim/js/compiled/invite.js diff --git a/src/messenger/webim/js/request.js b/src/messenger/webim/js/compiled/request.js similarity index 100% rename from src/messenger/webim/js/request.js rename to src/messenger/webim/js/compiled/request.js diff --git a/src/messenger/webim/js/source/build.xml b/src/messenger/webim/js/source/build.xml index b3a458b5..7d2e2573 100644 --- a/src/messenger/webim/js/source/build.xml +++ b/src/messenger/webim/js/source/build.xml @@ -56,7 +56,7 @@ - + diff --git a/src/messenger/webim/libs/getcode.php b/src/messenger/webim/libs/getcode.php index f72a3b21..a58e67c1 100644 --- a/src/messenger/webim/libs/getcode.php +++ b/src/messenger/webim/libs/getcode.php @@ -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\''; + $temp .= '/js/compiled/request.js">'; } return "" . $temp . ""; } diff --git a/src/messenger/webim/request.php b/src/messenger/webim/request.php index d5e0429d..fd91c2b2 100644 --- a/src/messenger/webim/request.php +++ b/src/messenger/webim/request.php @@ -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'] : '';