mirror of
https://github.com/friendica/friendica
synced 2024-12-21 15:04:54 +01:00
1f09e7ad23
1. Add template category 'end' that places content right before final </body> tag 2. Move most Javascript from tpl files into one cacheable file, theme.js 3. Load scripts at end of the HTML document instead of in the header 4. Minify several Javascript files Note that the second and third things were only done for Frost and Frost Mobile. Doing it for every theme means going through every .tpl for every theme and rearranging the Javascript, which is tedious.
17 lines
313 B
Smarty
17 lines
313 B
Smarty
<script src="$baseurl/library/jquery_ac/friendica.complete.js" ></script>
|
|
|
|
<script>$(document).ready(function() {
|
|
var a;
|
|
a = $("#recip").autocomplete({
|
|
serviceUrl: '$base/acl',
|
|
minChars: 2,
|
|
width: 350,
|
|
onSelect: function(value,data) {
|
|
$("#recip-complete").val(data);
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|