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 12237 time(s), 4 post(s) 23.10.2012 10:22:01by johnsamuel
johnsamuel

johnsamuel

23.10.2012 10:22:01
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?
Dieser Inhalt wurde noch nicht bewertet. 
429 Reputation 46 Total posts
kpeulic

kpeulic

23.10.2012 12:47:58
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.

Dieser Inhalt wurde noch nicht bewertet. 
1849 Reputation 181 Total posts
ClipFlairadmin

ClipFlairadmin

26.10.2012 10:08:35
doesn't this practically make it ignore the "minItemsLeft" param and treat it as 0?
Dieser Inhalt wurde noch nicht bewertet. 
25 Reputation 4 Total posts
kpeulic

kpeulic

26.10.2012 13:09:45
This was a bug and it is fixed. This fix will be available with next nightly build of the MonoX.
Dieser Inhalt wurde noch nicht bewertet. 
1849 Reputation 181 Total posts