-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_login_id.js
27 lines (24 loc) · 970 Bytes
/
get_login_id.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//manage product
if (window.location.pathname.indexOf('products_manage') != -1) {
var evt = new CustomEvent('build', {'detail': MANAGEAPP.loginId});
evt.initEvent("tracking_products", true, true);
window.dispatchEvent(evt);
}
// copy to new product
if (window.location.pathname.indexOf('post_product_interface') != -1) {
var evt = new CustomEvent('build', {'detail': POSTDATAMAP.loginId});
evt.initEvent("fill_product_title_keywords", true, true);
window.dispatchEvent(evt);
}
// upload from plugin
if (window.location.pathname.indexOf('posting') != -1) {
var evt = new CustomEvent('build', {'detail': POSTDATAMAP.loginId});
evt.initEvent("upload_from_back", true, true);
window.dispatchEvent(evt);
}
// update product
if (window.location.pathname.indexOf('editing') != -1) {
var evt = new CustomEvent('build', {'detail': POSTDATAMAP.loginId});
evt.initEvent("from_product_editing_page", true, true);
window.dispatchEvent(evt);
}