Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/admin_templates/js/template_manager.js
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | |||||
$('#cms-close-editing-notice').click(function ($e) { | $('#cms-close-editing-notice').click(function ($e) { | ||||
$('#cms-editing-notice').hide(); | $('#cms-editing-notice').hide(); | ||||
$e.preventDefault(); | $e.preventDefault(); | ||||
}); | }); | ||||
$('body').on('click', '#cms-revision-dropdown .top .item', function ($e) { | $('body').on('click', '#cms-revision-dropdown .top .item', function ($e) { | ||||
$('a:first', this).click(); | window.location.assign( | ||||
$('a:first', this).attr('href') | |||||
$e.preventDefault(); | ); | ||||
}); | }); | ||||
setInterval( | setInterval( | ||||
function () { | function () { | ||||
$.getJSON( | $.getJSON( | ||||
$('#kf_revisions_' + $template_manager.pageId).attr('action') + '&events[page-revision]=OnGetInfo', | $('#kf_revisions_' + $template_manager.pageId).attr('action') + '&events[page-revision]=OnGetInfo', | ||||
function ($data) { | function ($data) { | ||||
$template_manager.pageInfo = $data; | $template_manager.pageInfo = $data; | ||||
▲ Show 20 Lines • Show All 447 Lines • Show Last 20 Lines |