Created
April 16, 2011 01:45
-
-
Save skipjac/922763 to your computer and use it in GitHub Desktop.
This is a custom widget in Zendesk that gets the help desk total user count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="userCnt"> | |
| </div> | |
| <script type="javascript"> | |
| $j(document).ready(function() { | |
| $j.get('/people.xml', function(d) { | |
| var countopen = $j(d).find('record').parent().attr('count'); | |
| if(!countopen){countopen = 0;} | |
| $j('#userCnt').append("<p>"+countopen + " users in your help desk.<\/p>") ; | |
| }); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment