Skip to content

Commit

Permalink
Fixing bug where the modified markup breaks adding groups.
Browse files Browse the repository at this point in the history
Closes photo#407
  • Loading branch information
jmathai committed Dec 30, 2011
1 parent 3d7178f commit 0cec9c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -153,7 +153,7 @@ var opTheme = (function() {
groupPost: function(ev) {
ev.preventDefault();
var el = $(ev.target),
form = el.parent(),
form = el.parent().parent(),
url = form.attr('action')+'.json',
isCreate = (url.search('create') > -1);
OP.Util.makeRequest(url, form.serializeArray(), function(response) {
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/controllers/UserController.php
Expand Up @@ -63,7 +63,7 @@ public static function settings()
if(!empty($mobilePassphrase))
$mobilePassphrase['minutes'] = ceil(($mobilePassphrase['expiresAt']-time())/60);
$template = sprintf('%s/settings.php', getConfig()->get('paths')->templates);
$body = getTemplate()->get($template, array('plugins' => $plugins['result'], 'credentials' => $credentials['result'], 'webhooks' => $webhooks['result'], 'groups' => $groups['result'], 'mobilePassphrase' => $mobilePassphrase));
$body = getTemplate()->get($template, array('crumb' => getSession()->get('crumb'), 'plugins' => $plugins['result'], 'credentials' => $credentials['result'], 'webhooks' => $webhooks['result'], 'groups' => $groups['result'], 'mobilePassphrase' => $mobilePassphrase));
getTheme()->display('template.php', array('body' => $body, 'page' => 'settings'));
}
}

0 comments on commit 0cec9c9

Please sign in to comment.