Skip to content
Snippets Groups Projects
Commit 4fa5a416 authored by Peter Rotich's avatar Peter Rotich
Browse files

bugs: Minor bug fixes

parent cd78efd9
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,7 @@ class ContentAjaxAPI extends AjaxController { ...@@ -150,7 +150,7 @@ class ContentAjaxAPI extends AjaxController {
$langs = Internationalization::getConfiguredSystemLanguages(); $langs = Internationalization::getConfiguredSystemLanguages();
$translations = $content->getAllTranslations(); $translations = $content->getAllTranslations();
$info = array( $info = array(
'title' => $content->getTitle(), 'title' => $content->getName(),
'body' => $content->getBody(), 'body' => $content->getBody(),
); );
foreach ($translations as $t) { foreach ($translations as $t) {
......
...@@ -326,7 +326,9 @@ var scp_prep = function() { ...@@ -326,7 +326,9 @@ var scp_prep = function() {
$('.dialog').delegate('input.close, a.close', 'click', function(e) { $('.dialog').delegate('input.close, a.close', 'click', function(e) {
e.preventDefault(); e.preventDefault();
$(this).parents('div.dialog') var $dialog = $(this).parents('div.dialog');
$dialog.off('blur.redactor');
$dialog
.hide() .hide()
.removeAttr('style'); .removeAttr('style');
$.toggleOverlay(false); $.toggleOverlay(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment