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 )

12392 put(a) pogledan, 4 odgovor(a) 23.10.2012. 10:22:01Kreirao(la) 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?
Ovaj sadržaj još nije ocijenjen. 
429 Reputacija 46 Ukupno objava
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.

Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
ClipFlairadmin

ClipFlairadmin

26.10.2012. 10:08:35
doesn't this practically make it ignore the "minItemsLeft" param and treat it as 0?
Ovaj sadržaj još nije ocijenjen. 
25 Reputacija 4 Ukupno objava
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.
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava