Hi,
I create 5 groups on a championship. Only 8 out of 10 teams go to the next level, so I define manually drag and drop. but I am not able to get it working.
Has anyone elase have this issue?
Hi,
I create 5 groups on a championship. Only 8 out of 10 teams go to the next level, so I define manually drag and drop. but I am not able to get it working.
Has anyone elase have this issue?
What worked for me is the method of Shawnkltucker.
Open admin.php and find: loadScripts()
You should see something like this:
function loadScripts()
{
wp_register_script( 'leaguemanager_ajax', LEAGUEMANAGER_URL.'/admin/js/ajax.js', array('sack'), LEAGUEMANAGER_VERSION );
wp_enqueue_script('leaguemanager_ajax');
?>
Add wp_enqueue_script("scriptaculous-dragdrop"); to it, like this:
function loadScripts()
{
wp_enqueue_script("scriptaculous-dragdrop");
wp_register_script( 'leaguemanager_ajax', LEAGUEMANAGER_URL.'/admin/js/ajax.js', array('sack'), LEAGUEMANAGER_VERSION );
wp_enqueue_script('leaguemanager_ajax');
?>
Next open standings.php and search for <tbody id=, change the line to just this:
<tbody id="the-list-standings" class="form-table">
It's working in Chrome and Firefox for me, I didn't test it with IE.
I seriously love you right now.
Not only did this fix the drag/drop issue, but I was having an issue where Ajax was causing the teams scores not to save therefore the team rankings weren't registering. This fix has also sorted that issue.
I've been trying a while to figure this out!!
Thank you!
You must log in to post.