![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#4
|
|||
|
|||
![]()
You can add a callback to the receive event and prevent users from putting more than 2 items into the same area. But this might prevent them from sorting if there's no empty space. And if they only have one empty space, it'll probably be a little bit painful to reorder the adoptables
HTML Code:
$('.sortable_adoptables') .css('background-color', '#FFFF66') .animate({ backgroundColor: realBg }, 'slow' ) .sortable({ cursor: 'pointer', connectWith: ".sortable_adoptables", receive: function(event, ui) { var $this = $(this); if ($this.children('table').length > 1) { $(ui.sender).sortable('cancel'); } } }); |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a "Faction" for adoptables/owned adoptables | Vaporman87 | Questions and Supports | 1 | 03-04-2014 03:38 PM |
Columns after upgrade | draugluin | Questions and Supports | 4 | 10-22-2012 04:49 AM |
Sorting request.... Again. | SilverDragonTears | Questions and Supports | 3 | 09-16-2012 03:02 AM |
Sorting adoptables? (PHP code) | Aasixx | Questions and Supports | 6 | 03-27-2012 06:10 PM |
Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY] | Ashje | Addons/Mods Graveyard | 2 | 05-24-2009 03:17 AM |
What's New? |
What's Hot? |
What's Popular? |