Zeile 99 | Zeile 99 |
---|
<div align="center"><br /><input type="submit" class="button" name="submit" value="{$lang->search}" /></div> </form> {$footer}
|
<div align="center"><br /><input type="submit" class="button" name="submit" value="{$lang->search}" /></div> </form> {$footer}
|
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/select2/select2.css"> <script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js"></script>
| <link rel="stylesheet" href="{$mybb->asset_url}/jscripts/select2/select2.css?ver=1807"> <script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1806"></script>
|
<script type="text/javascript"> <!-- if(use_xmlhttprequest == "1")
| <script type="text/javascript"> <!-- if(use_xmlhttprequest == "1")
|
Zeile 108 | Zeile 108 |
---|
MyBB.select2(); $("#username").select2({ placeholder: "{$lang->search_user}",
|
MyBB.select2(); $("#username").select2({ placeholder: "{$lang->search_user}",
|
minimumInputLength: 3, maximumSelectionSize: 3,
| minimumInputLength: 2,
|
multiple: false, ajax: { // instead of writing the function to execute the request we use Select2's convenient helper url: "xmlhttp.php?action=get_users",
| multiple: false, ajax: { // instead of writing the function to execute the request we use Select2's convenient helper url: "xmlhttp.php?action=get_users",
|
Zeile 141 | Zeile 140 |
---|
return {id:term, text:term}; } },
|
return {id:term, text:term}; } },
|
| });
$('[for=username]').click(function(){ $("#username").select2('open'); return false;
|
}); } // -->
| }); } // -->
|