Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Removed items being passed on POST #196

Open
orthodoxws opened this issue Jun 1, 2017 · 6 comments
Open

Removed items being passed on POST #196

orthodoxws opened this issue Jun 1, 2017 · 6 comments
Labels

Comments

@orthodoxws
Copy link

Items selected, then unselected are still being passed with the form data:

https://www.screencast.com/t/oVtooqGwl3k

@arendjr
Copy link
Owner

arendjr commented Jul 21, 2017

Sorry, I don't have Flash installed here, can you describe the issue in some other way?

@orthodoxws
Copy link
Author

Ah, I'm sorry! Here it is as an MP4: https://www.screencast.com/t/feWNGeWir

@arendjr
Copy link
Owner

arendjr commented Jul 24, 2017

Thanks! I suppose you're using the jQuery build, right? Can you show me the code you use for initializing Selectivity? Am I understanding correctly it is only removing that's causing an issue, right?

@orthodoxws
Copy link
Author

Yes, I'm using the jQuery build. The problem is that when I remove a directory which I had formerly checked, it still submits in the POST data. Thanks for your help with this!

Here's the code:

$(".selectivity").selectivity( { backspaceHighlightsBeforeDelete: true } );

Then..

													<select id="cb" name="cb[]" multiple class="selectivity">
														<?
														
													  for ($s = 0; $s < $snum_results; $s++)
													  {
													     echo "<option value=\"$srow[dir]\" ";
													     if (in_array($srow[dir], $dir_arr))
													         echo "selected";
													     echo "> $srow[dir]</option>";
													     $srow = mysqli_fetch_array($sresult);
													  }															
																																																															 
														?>   
													</select>

@arendjr
Copy link
Owner

arendjr commented Jul 26, 2017 via email

@arendjr arendjr added the bug label Jul 26, 2017
@orthodoxws
Copy link
Author

Thank you very much! I appreciate it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants