app/assets/javascripts/activeadmin-selleo-cms/custom.js in activeadmin-selleo-cms-0.0.49 vs app/assets/javascripts/activeadmin-selleo-cms/custom.js in activeadmin-selleo-cms-0.0.51
- old
+ new
@@ -48,10 +48,16 @@
$('#file-manager').html('').load('/admin/pages/'+page_id+'/edit.js', function() {
$(this).dialog("option", "position", ['center', 'center'] );
}).dialog('open');
}
+function editAccessRights(page_id) {
+ $('#file-manager').html('').load('/admin/pages/'+page_id+'/access_rights.js', function() {
+ $(this).dialog("option", "position", ['center', 'center'] );
+ }).dialog('open');
+}
+
function delete_asset(asset_id) {
if(confirm('Are you sure?')) {
$.ajax({
url: '/admin/assets/' + asset_id + '.js',
type: 'DELETE'
@@ -156,9 +162,12 @@
}
$(function(){
if ( (typeof EDITING != "undefined") && (EDITING == true) ) {
$('section').addClass("editing");
+ }
+
+ if ( $('#file-manager').size() > 0 ) {
$('#file-manager').dialog({
width: 'auto',
height: 'auto',
title: 'CMS Editor',
modal: true,