I opened the console and entered $("body").tt_newticket();

When I opened the newticket I saw the error:

   1. Uncaught ReferenceError: auto_preview_timeout is not defined 
   
auto_preview.js:18<http://localhost:8080/trac/tmg/chrome/common/js/auto_preview.js>
      1. 
$.fn.autoSubmitauto_preview.js:18<http://localhost:8080/trac/tmg/chrome/common/js/auto_preview.js>
      2. (anonymous 
function)newticket:24<http://localhost:8080/trac/tmg/newticket>
      3. ojquery.js:2<http://localhost:8080/trac/tmg/chrome/common/js/jquery.js>
      4. 
p.fireWithjquery.js:2<http://localhost:8080/trac/tmg/chrome/common/js/jquery.js>
      5. 
e.extend.readyjquery.js:2<http://localhost:8080/trac/tmg/chrome/common/js/jquery.js>
      6. c.addEventListener.B
      

I got on the line I entered and did a hard return in the console and got:
$("body").tt_newticket();
undefined
event.returnValue is deprecated. Please use the standard 
event.preventDefault() instead. 

I then changed the type to a different option and was asked if I wanted to 
'Replace current content with ticket template?'. I answered yes to the 
prompt and the content changed to what I had added to the tt_ticket_store 
via the tickettemplateplugin.



On Friday, March 7, 2014 2:21:15 PM UTC-6, ONeal Freeman wrote:
>
> Also after setting the auto_preview_timeout in trac.ini nothing changes. I 
> do not have a preview on a new ticket.
>
> On Friday, March 7, 2014 1:39:22 PM UTC-6, RjOllos wrote:
>>
>> On Friday, March 7, 2014 11:33:20 AM UTC-8, ONeal Freeman wrote:
>>>
>>> Typing into the summary and description I do not have a preview of any 
>>> kind.
>>>
>>
>> Please let me know what you find after setting a value for the timeout.
>>  
>>
>>> Entering $("body").tt_newticket();  into the browser just looks up the 
>>> statement in google. I am guessing that when you said browser console your 
>>> meant IE address bar?
>>>
>>
>> To get to the browser console in IE press F12 to open developer tools, 
>> and you should then see a tab labeled Console.
>> http://msdn.microsoft.com/en-us/library/dd565625(v=vs.85).aspx
>>
>> In Chrome, CTRL + SHIFT + I opens the developer tools. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to