MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Clearing All Roles from ~MonoX/Admin/UserManager.aspx  (Mono Support )

Viewed 4733 time(s), 4 post(s) 10/23/2012 10:22:01 AMby johnsamuel
johnsamuel

johnsamuel

10/23/2012 10:22:01 AM
Hi, when a new person joins the Community the right hand box in the line "Add user to roles" is blank. If we assign a role to that person it is then, as far as we can tell, not possible to return that box to be blank i.e. there has to be a minimum of one role. We want to return that box to be blank. How do we do that?
This content has not been rated yet. 
429 Reputation 46 Total posts
kpeulic

kpeulic

10/23/2012 12:47:58 PM
You need to search for this function:

//remove selected item from the select element
function removeItem(listBoxID, maxDestinationItems, minItemsLeft, errorMsgControl, errorMinMsgControl)
{   
    var targetLB = document.getElementById(listBoxID);
 
  if (targetLB.length <= minItemsLeft)
  {
...
in file: "MonoX\Admin\controls\scripts\JSHelper.js" and you need to add "minItemsLeft = 0;" to this funtion:

//remove selected item from the select element
function removeItem(listBoxID, maxDestinationItems, minItemsLeft, errorMsgControl, errorMinMsgControl)
{   
  minItemsLeft = 0;
    var targetLB = document.getElementById(listBoxID);
 
  if (targetLB.length <= minItemsLeft)
  {
...
Please let me know is this was helpful for you.

This content has not been rated yet. 
1849 Reputation 181 Total posts
ClipFlairadmin

ClipFlairadmin

10/26/2012 10:08:35 AM
doesn't this practically make it ignore the "minItemsLeft" param and treat it as 0?
This content has not been rated yet. 
25 Reputation 4 Total posts
kpeulic

kpeulic

10/26/2012 1:09:45 PM
This was a bug and it is fixed. This fix will be available with next nightly build of the MonoX.
This content has not been rated yet. 
1849 Reputation 181 Total posts