|
|
@ -573,9 +573,9 @@ define([
|
|
|
|
onFriendShare.reg(saveValue);
|
|
|
|
onFriendShare.reg(saveValue);
|
|
|
|
var getLinkValue = function (initValue) {
|
|
|
|
var getLinkValue = function (initValue) {
|
|
|
|
var val = initValue || {};
|
|
|
|
var val = initValue || {};
|
|
|
|
var edit = initValue ? val.edit : Util.isChecked($(link).find('#cp-share-editable-true'));
|
|
|
|
var edit = val.edit !== undefined ? val.edit : Util.isChecked($(link).find('#cp-share-editable-true'));
|
|
|
|
var embed = initValue ? val.embed : Util.isChecked($(link).find('#cp-share-embed'));
|
|
|
|
var embed = val.embed !== undefined ? val.embed : Util.isChecked($(link).find('#cp-share-embed'));
|
|
|
|
var present = initValue ? val.present : Util.isChecked($(link).find('#cp-share-present'));
|
|
|
|
var present = val.present !== undefined ? val.present : Util.isChecked($(link).find('#cp-share-present'));
|
|
|
|
|
|
|
|
|
|
|
|
var hash = (!hashes.viewHash || (edit && hashes.editHash)) ? hashes.editHash : hashes.viewHash;
|
|
|
|
var hash = (!hashes.viewHash || (edit && hashes.editHash)) ? hashes.editHash : hashes.viewHash;
|
|
|
|
var href = origin + pathname + '#' + hash;
|
|
|
|
var href = origin + pathname + '#' + hash;
|
|
|
|