George Oakley scored against Morton, the club he left this summer, to secure a 1-1 draw for Ayr.
Oakley marked his return to Cappielow by steering in a free-kick from Jay Henderson five minutes into the second half.
Morton had gone ahead eight minutes before half-time with their first goal in almost a month.
Kirk Broadfoot flicked on a free-kick from Morgan Boyes and Iain Wilson stuck out a leg to get the final touch.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.