bebeboutik/modules/privatesales/privatesale.js

27 lines
850 B
JavaScript
Executable File

function itemEdition(linkId) {
document.location.href = current_location + "&edit&id=" + linkId;
}
function itemDeletion(linkId) {
var ok = confirm(i18n_delete)
if(ok == true) {
document.location.href = current_location + "&id=" + linkId + "&delete=1";
}
}
function ImgDeletion(linkId, ImgId) {
var ok = confirm(i18n_delete_img)
if(ok == true) {
document.location.href = current_location + "&deleteImg=1&image=" + ImgId + "&id=" + linkId;
}
}
function itemLockPosition(linkId) {
document.location.href = current_location + "&id=" + linkId + "&lock_position=1";
}
function itemUnLockPosition(linkId) {
document.location.href = current_location + "&id=" + linkId + "&unlock_position=1";
}
function resortPosition() {
document.location.href = current_location + "&resort_position=1";
}