Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've added a nice toggle function to the Checkbox list datatype by using pure javascript/jquery.
I did this using this little jquery plugin and the following bit of jquery:
jQuery(function($) { $(".propertyItemContent input[type=checkbox]:first").parents(".propertyItemContent table").after('<a style="cursor:pointer;margin:5px" onclick="$(this.parentNode).toggleCheckboxes()">toggle</a>');});
I put this code in the same .js file as the plugin. You can find the resulting file here.
Next I needed to add this js file to /umbraco/editContent.aspx. For this I can think of two options:
I did choose the second option because it does not need a usercontrol, but it is not upgrade-proof:
......<asp:Content ContentPlaceHolderID="head" runat="server"><script type="text/javascript" src="/umbraco_client/abcmedia/jquery.checkboxes.umb.js"></script>......
I'm wondering: is there a better, more safe option to add a javascript file to the backend?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Add backend javascript file - i.e. Toggle checkbox list
I've added a nice toggle function to the Checkbox list datatype by using pure javascript/jquery.
I did this using this little jquery plugin and the following bit of jquery:
I put this code in the same .js file as the plugin. You can find the resulting file here.
Next I needed to add this js file to /umbraco/editContent.aspx. For this I can think of two options:
I did choose the second option because it does not need a usercontrol, but it is not upgrade-proof:
I'm wondering: is there a better, more safe option to add a javascript file to the backend?
is working on a reply...