- 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
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
function getGiftingPageSelection(){
if('_satellite' in this && typeof this._satellite.readCookie == 'function'){
var gft, tmp;
tmp = _satellite.readCookie('gift');
if(!tmp){
return false;
}
try{
gft = JSON.parse( decodeURIComponent( tmp ) );
tmp = {};
for(var i=0,l=gft.length;i<l;i++){
tmp[gft[i].name] = gft[i].value;
}
return tmp;
}
catch(e){
return e;
}
}
}
//TODO: Download & Box
function transferGiftingPageSelection_SubscriptionAndDownload(o) {
var imgnum = o.picselect || 1;
jQuery('.egift_detail .choosetheme .input-radio:nth-child(' + imgnum + ') input').prop('checked', true);
jQuery('.egift_detail input[name="sender_name"]').val(o.giftername || '').keydown();
jQuery('.egift_detail input[name="receiver_name"]').val(o.receivername || '').keydown();
jQuery('.egift_detail input[name="receiver_email"]').val(o.receiveremail || '').keydown();
jQuery('.egift_detail *[name="personalized_message"]').val(o.giftmessage || '').keydown();
var months = ( new Date(o.giftdate) ).getMonth() + 1;
var years = ( new Date(o.giftdate) ).getFullYear();
var date = ( new Date(g.giftdate) ).getDate();
jQuery('.egift_detail input[name="send_at"]').val(months + '/' + date + '/' + years).keydown();
}