Skip to content

Commit

Permalink
fixed two js errors in application/list screen when the user doesn't …
Browse files Browse the repository at this point in the history
…have any application (fixes #2123)
  • Loading branch information
kawahara committed May 22, 2011
1 parent 204e6cc commit e9f44b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<?php op_include_box('NoApp', get_slot('no_app_alert')) ?>
<?php endif; ?>

<?php if ($isOwner) : ?>
<?php if ($isOwner && isset($memberApplications) && count($memberApplications)) : ?>
<?php echo sortable_element('order', array(
'url' => '@application_sort',
'tag' => 'div',
Expand Down
1 change: 1 addition & 0 deletions lib/helper/OpenSocialHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function make_app_setting_modal_box($id)
{
sfContext::getInstance()->getResponse()->addJavascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype');
sfContext::getInstance()->getResponse()->addJavascript('util');
sfContext::getInstance()->getResponse()->addJavascript('/opOpenSocialPlugin/js/opensocial-util');

$modalbox = '<div id="'.$id.'" class="modalWall" style="display:none" onclick="iframeModalBox.close(); false;"></div>'
. '<div id="'.$id.'_contents" class="modalBox" style="display: none;">'
Expand Down

0 comments on commit e9f44b6

Please sign in to comment.