Object doesn't support property or method 'dialog'
I have a very strange issue.
On a sharepoint page i have two Jquery webparts.
When first webpart loads it add links and shows dialog box.
<script type="text/javascript" src="/siteCollection/_layouts/15/releasesearch/js/jquery.js"></script>
<script type="text/javascript" src="/siteCollection/_layouts/15/releasesearch/js/jquery-ui.min.js"></script>
When another webpart loads it adds Jquery link. It is in same site collection but different folder.
<script type="text/javascript" src="/siteCollection/_layouts/15/project%20search/js/jquery.js"></script>
In both location Jquery.js files are same with same version(v1.10.2). But some how another webpart using jquery-ui.min.js for dialog says
Object doesn't support property or method 'dialog'.
If i remove second webpart dialog works correctly.
Please let mw know what is wrong here and how to resolve this issue.