added images, changed plugin= to @ and pagesave-forward to page itself

This commit is contained in:
Logsol 2013-07-18 14:26:18 +02:00
parent eba4f386df
commit eecc2bca5f
4 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ class AdminPageController extends Katharsis_Controller_Abstract
$this->_page->save($params); $this->_page->save($params);
DidgeridooArtwork_Notice::add('Page wurde erfolgreich gespeichert!'); DidgeridooArtwork_Notice::add('Page wurde erfolgreich gespeichert!');
$this->_location('index'); $this->_location($this->_getParam('url'), 'page');
} }
public function deleteAction() public function deleteAction()

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View file

@ -3,6 +3,6 @@ function adminPageInsertImage(type, img) {
if(type == 'header') { if(type == 'header') {
opener.document.forms[0].header_image.value = img; opener.document.forms[0].header_image.value = img;
} else { } else {
opener.document.forms[0].content.value += '<img src="{plugin=image ' + img + '}" alt="">'; opener.document.forms[0].content.value += '<img src="{@image ' + img + '}" alt="">';
} }
} }