Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

jQuery on List NewForm is disabling Attach File in ribbon

$
0
0

Hi!

We have some custom jQuery in a Content Editor on our NewForm.aspx page for a SharePoint 2010 list:

<script src=".../jquery.js" type="text/javascript"></script>

<script type="text/javascript">
window.onload = function(){
                window.setTimeout(readyCall, 1000);
}
function readyCall(){
     var piddata = localStorage.getItem('myPID');
$("#ctl00_m...TextField").focus();
$("#ctl00_m..._TextField").val(piddata);
}</script>

It's working as expected and auto-populating our field, but the top ribbon (especially the Attach File) in the ribbon is now disabled.  As soon as I take that section out via SharePoint Designer, the top ribbon is enabled again.

Looking at that ribbon section in Firebug, I can see many attributes of: unselectable="on"

Please advise how we can turn the ribbon back on.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>