extend AC
This commit is contained in:
parent
f2078b25ad
commit
c3cd613f42
@ -24,7 +24,7 @@ class Acl extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|
||||||
logger('mod_acl: ' . print_r($_REQUEST,true));
|
logger('mod_acl: ' . print_r($_REQUEST,true),LOGGER_DATA);
|
||||||
|
|
||||||
$start = (x($_REQUEST,'start') ? $_REQUEST['start'] : 0);
|
$start = (x($_REQUEST,'start') ? $_REQUEST['start'] : 0);
|
||||||
$count = (x($_REQUEST,'count') ? $_REQUEST['count'] : 500);
|
$count = (x($_REQUEST,'count') ? $_REQUEST['count'] : 500);
|
||||||
|
@ -66,6 +66,10 @@ class Search extends \Zotlabs\Web\Controller {
|
|||||||
$search = substr($search,1);
|
$search = substr($search,1);
|
||||||
goaway(z_root() . '/directory' . '?f=1&navsearch=1&search=' . $search);
|
goaway(z_root() . '/directory' . '?f=1&navsearch=1&search=' . $search);
|
||||||
}
|
}
|
||||||
|
if(strpos($search,'!') === 0) {
|
||||||
|
$search = substr($search,1);
|
||||||
|
goaway(z_root() . '/directory' . '?f=1&navsearch=1&search=' . $search);
|
||||||
|
}
|
||||||
if(strpos($search,'?') === 0) {
|
if(strpos($search,'?') === 0) {
|
||||||
$search = substr($search,1);
|
$search = substr($search,1);
|
||||||
goaway(z_root() . '/help' . '?f=1&navsearch=1&search=' . $search);
|
goaway(z_root() . '/help' . '?f=1&navsearch=1&search=' . $search);
|
||||||
|
@ -243,8 +243,19 @@ function string2bb(element) {
|
|||||||
replace: basic_replace,
|
replace: basic_replace,
|
||||||
template: contact_format,
|
template: contact_format,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Autocomplete forums
|
||||||
|
forums = {
|
||||||
|
match: /(^\!)([^\n]{3,})$/,
|
||||||
|
index: 2,
|
||||||
|
search: function(term, callback) { contact_search(term, callback, backend_url, 'f', [], spinelement='#nav-search-spinner'); },
|
||||||
|
replace: basic_replace,
|
||||||
|
template: contact_format
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
this.attr('autocomplete', 'off');
|
this.attr('autocomplete', 'off');
|
||||||
var a = this.textcomplete([contacts], {className:'acpopup', maxCount:100, zIndex: 1020, appendTo:'nav'});
|
var a = this.textcomplete([contacts,forums], {className:'acpopup', maxCount:100, zIndex: 1020, appendTo:'nav'});
|
||||||
a.on('textComplete:select', function(e, value, strategy) { submit_form(this); });
|
a.on('textComplete:select', function(e, value, strategy) { submit_form(this); });
|
||||||
};
|
};
|
||||||
})( jQuery );
|
})( jQuery );
|
||||||
|
Reference in New Issue
Block a user