I have a name for a text field that is shown on two lines in the edit screen. Is it possible to make the edit screen wider?
Cost changes 5-PG-61
We put the following text into the Announcement Banner textbox to get the entire field's name on one line.
AJS.$(document).ready(function() { AJS.$('.name').css({"white-space":"normal"}); AJS.$('.name').css({"width":"auto"}); });
Thanks! But when I add this to the Banner I only see the text in the Banner. Do you know if there something I need to do to make this work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add within the script tag
<script> ... </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<script>
AJS.$(document).ready(
function
()
{
AJS.$(
'.name'
).css({
"white-space"
:
"normal"
});
AJS.$(
'.name'
).css({
"width"
:
"auto"
});
});
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to put <script>-tags around the code snippet since the announcement bannner is using html.
Look at: https://gist.github.com/aheusingfeld/1723281 as an example
Beware: If you miss a tag you may lock up your entire instance! This method is not recommended in my opinion and should only be used for testing purposes.
Check out:
if you get this problem!
// Svante
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.