Vergleich private_advanced_search - 1.8.2 - 1.8.28

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 31Zeile 31
		</td>
</tr>
<tr>

		</td>
</tr>
<tr>

		<td class="trow2"><strong><label for="keywords">{$lang->sender}</label></strong></td>

		<td class="trow2"><strong><label for="sender">{$lang->sender}</label></strong></td>

		<td class="trow2"><input type="text" class="textbox" name="sender" id="sender" size="35" maxlength="250" /></td>
</tr>
<tr>

		<td class="trow2"><input type="text" class="textbox" name="sender" id="sender" size="35" maxlength="250" /></td>
</tr>
<tr>

Zeile 76Zeile 76
</table>
</form>
{$footer}

</table>
</form>
{$footer}

 
<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")
{
MyBB.select2();
$("#sender").select2({
placeholder: "{$lang->search_user}",
minimumInputLength: 2,
multiple: false,
allowClear: true,
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
url: "xmlhttp.php?action=get_users",
dataType: 'json',
data: function (term, page) {
return {
query: term, // search term
};
},
results: function (data, page) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};
}
},
initSelection: function(element, callback) {
var value = $(element).val();
if (value !== "") {
callback({
id: value,
text: value
});
}
}
});
}
// -->
</script>

</body>
</html>

</body>
</html>