// Does the group exist?
if( in_array( $groupname, OC_Group::getGroups())) {
- OC_JSON::error(array("data" => array( "message" => $l->t("Unable to add group") )));
+ OC_JSON::error(array("data" => array( "message" => $l->t("Group already exists") )));
exit();
}
#user-controls {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
- position: fixed; right: 0; left:380px; height: 44px; width: 100%;
+ position: fixed; right: 0; left:380px; height: 44px;
padding: 0; margin: 0;
background: #eee; border-bottom: 1px solid #e7e7e7;
z-index: 50;
margin: 3px; top: 4px;
}
#app-navigation ul li:hover > span.utils .delete { display: block; }
+#usersearchform { position: absolute; top: 4px; right: 10px; }
+#usersearchform label { font-weight: 700; }
form { display:inline; }
table.grid th { height:2em; color:#999; }
table.grid th, table.grid td { border-bottom:1px solid #ddd; padding:0 .5em; padding-left:.8em; text-align:left; font-weight:normal; }
}
)
});
+ // Implements User Search
+ $('#usersearchform input').keyup(function() {
+ var inputVal = $(this).val();
+ $('table tbody tr td.name').each(function() {
+ if ($('table tbody tr').text().search(new RegExp(inputVal, "i")) < 0) {
+ $('table tbody tr').fadeOut();
+ } else {
+ $('table tbody tr').show();
+ }
+ });
+ });
// Handle undo notifications
OC.Notification.hide();
<!-- Default storage -->
<div class="app-settings">
<div class="quota">
- <span><?php p($l->t('Default Storage'));?></span>
+ <span><?php p($l->t('Default Quota'));?></span>
<?php if((bool) $_['isadmin']): ?>
<select class='quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>">
<option
alt="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>"/>
</div>
<?php endif; ?>
+ <form autocomplete="off" id="usersearchform">
+ <label><?php p($l->t( 'Search' )); ?></label>
+ <input type="text" class="input" />
+ </form>
</div>
<table class="hascontrols grid" data-groups="<?php p(json_encode($allGroups));?>">
<thead>