fixed the edit link problem in site settings
This commit is contained in:
parent
af103fa427
commit
9d7af2ccac
|
@ -81,7 +81,7 @@ function customOpenSlide() {
|
||||||
} else {
|
} else {
|
||||||
$('#pageslide form').prop('method', 'post')
|
$('#pageslide form').prop('method', 'post')
|
||||||
};
|
};
|
||||||
_type == 'page' ? pageSetting(element.data('id'), _edit) : linkSetting(element.data('id'), _edit);
|
_type == 'page' ? pageSetting(element.data('id'), _edit) : linkSetting(element.data('id'), _edit, pageslide);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$iFrame.pageslide({
|
$iFrame.pageslide({
|
||||||
|
@ -237,8 +237,8 @@ function pageSetting(id, edit) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
function linkSetting(id, edit) {
|
function linkSetting(id, edit, ps) {
|
||||||
$linkPublishedTrue = $('#link_is_published_true');
|
$linkPublishedTrue = ps.find('#link_is_published_true');
|
||||||
_status = edit;
|
_status = edit;
|
||||||
if(_status) {
|
if(_status) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -250,6 +250,7 @@ function linkSetting(id, edit) {
|
||||||
})
|
})
|
||||||
.done(function(data) {
|
.done(function(data) {
|
||||||
_linkData = data;
|
_linkData = data;
|
||||||
|
console.log($linkPublishedTrue)
|
||||||
data.public ? $linkPublishedTrue.prop('checked', true) : $linkPublishedTrue.prop('checked', false);
|
data.public ? $linkPublishedTrue.prop('checked', true) : $linkPublishedTrue.prop('checked', false);
|
||||||
$linkPublishedTrue.prop('checked') ? $('.link-options').slideDown(300) : $('.link-options').slideUp(300);
|
$linkPublishedTrue.prop('checked') ? $('.link-options').slideDown(300) : $('.link-options').slideUp(300);
|
||||||
$.each(_linkData.link, function(index, val) {
|
$.each(_linkData.link, function(index, val) {
|
||||||
|
|
Reference in New Issue