Permalink
Browse files

Fixed github issue: https://github.com/fusonic/chive/issues/17 (Bookm…

…ark button not working)
  • Loading branch information...
1 parent e6c3d0e commit 277d3ee2e8ec857a8213a86ec8955c6b95d0f365 @davidroth davidroth committed Aug 24, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 protected/views/global/browse.php
@@ -19,7 +19,10 @@
<?php echo Html::icon('execute', 16, false, 'core.execute'); ?>
<span><?php echo Yii::t('core', 'execute'); ?></span>
</a>
- <a class="icon button" href="javascript:void(0);" onclick="Bookmark.add('<?php echo $model->schema; ?>', (editAreaLoader ? editAreaLoader.getValue('query') : $('#query').val()));">
+ <a class="icon button" href="javascript:void(0);" onclick="Bookmark.add('<?php echo $model->schema; ?>', (typeof editAreaLoader == 'undefined'
+ ? $('#query').val()
+ : editAreaLoader.getValue('query') )
+ );">
<?php echo Html::icon('bookmark_add'); ?>
<span><?php echo Yii::t('core', 'bookmark'); ?></span>
</a>

0 comments on commit 277d3ee

Please sign in to comment.