Skip to content

Commit

Permalink
added live edit to short
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed Feb 10, 2015
1 parent 4fdd479 commit 0596334
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/news/api/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ private function parseNews($news)
if(LIVE_EDIT){
$news->title = $this->wrapLiveEdit($news->title, 'a/edit/'.$news->primaryKey);
$news->text = $this->wrapLiveEdit($news->text, 'a/edit/'.$news->primaryKey, 'div');
if($news->short) {
$news->short = $this->wrapLiveEdit($news->short, 'a/edit/'.$news->primaryKey);
}
}
return $this->createObject($news->attributes);
}
Expand Down

0 comments on commit 0596334

Please sign in to comment.