|
|
@ -27,24 +27,6 @@ load pinpad dynamically only after you know that it will be needed */
|
|
|
|
Clipboard: Clipboard
|
|
|
|
Clipboard: Clipboard
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var feedback = common.feedback = function (action) {
|
|
|
|
|
|
|
|
if (!action) { return; }
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (!getStore().getProxy().proxy.allowUserFeedback) { return; }
|
|
|
|
|
|
|
|
} catch (e) { return void console.error(e); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var href = '/common/feedback.html?' + action + '=' + (+new Date());
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
type: "HEAD",
|
|
|
|
|
|
|
|
url: href,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var reportAppUsage = common.reportAppUsage = function () {
|
|
|
|
|
|
|
|
var pattern = window.location.pathname.split('/')
|
|
|
|
|
|
|
|
.filter(function (x) { return x; }).join('.');
|
|
|
|
|
|
|
|
feedback(pattern);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// constants
|
|
|
|
// constants
|
|
|
|
var userHashKey = common.userHashKey = 'User_hash';
|
|
|
|
var userHashKey = common.userHashKey = 'User_hash';
|
|
|
@ -105,6 +87,25 @@ load pinpad dynamically only after you know that it will be needed */
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var feedback = common.feedback = function (action) {
|
|
|
|
|
|
|
|
if (!action) { return; }
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (!getStore().getProxy().proxy.allowUserFeedback) { return; }
|
|
|
|
|
|
|
|
} catch (e) { return void console.error(e); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var href = '/common/feedback.html?' + action + '=' + (+new Date());
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
type: "HEAD",
|
|
|
|
|
|
|
|
url: href,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var reportAppUsage = common.reportAppUsage = function () {
|
|
|
|
|
|
|
|
var pattern = window.location.pathname.split('/')
|
|
|
|
|
|
|
|
.filter(function (x) { return x; }).join('.');
|
|
|
|
|
|
|
|
feedback(pattern);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var getUid = common.getUid = function () {
|
|
|
|
var getUid = common.getUid = function () {
|
|
|
|
if (store) {
|
|
|
|
if (store) {
|
|
|
|
if (store.getProxy() && store.getProxy().proxy) {
|
|
|
|
if (store.getProxy() && store.getProxy().proxy) {
|
|
|
|