Thank you for the quick reply RjOllos! I can see in the log where the plugin is loading and it also shows up in the admin - plugins section as v0.8.These two lines are in the log but I do not see the listed .js in the folders under my project.2014-03-05 11:26:21,532 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/chrome/tt/json2.js'">2014-03-05 11:26:21,815 Trac[session] DEBUG: Retrieving session for ID u'duser'2014-03-05 11:26:21,839 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/tt/tt_newticket.js'">Is that perhaps the issue?
Ran trac-admin deploy as suggested. It did put a lot of items in the htdocs folder including quite a few js files, but that did not fix the problem.
I meant I did not find any .js files under my project folders.I just viewed the newticket source code and it shows:<script type="text/javascript" src="/trac/tmg/chrome/tt/json2.js"></script>I do not have an actual /chrome folder.I do appreciate your help. As you have determined by now I am a newbie with this. I was tasked to migrate trac .10.4 from a linux server to a windows server. I have been working on it for a month.
I am trying to get this to work so I can add a multilined default compliance sections in the ticket description box so as we write up issues we are reminded to annotate any compliance issues.I initially tried the instructions attrying to use the site.html to add the default description but didn't have any luck with that either.
Yes the line:<script src="/trac/tmg/tt/tt_newticket.js" type="text/javascript">is at the very end of the source code.
I appended onto my base url and the script did open
I called trac up in IE so I could see any errors on the status bar.I have this error:Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)Timestamp: Thu, 6 Mar 2014 16:32:40 UTCMessage: 'auto_preview_timeout' is undefinedLine: 18Char: 5Code: 0
I am using both Chrome and IE8.Installed plugins are:
Typing into the summary and description I do not have a preview of any kind.
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?
I had no idea that the console existed...When I entered the statement i got the following:TypeError: Object #<HTMLBodyElement> has no method 'tt_newticket'
I opened my trac.log again and anything with mimeview is being skipped.
I opened the console and watched for the auto_preview_timeout error but nothing I selected called the auto_preview.js.I tired to set the var auto_preview_timeout in the js but it did not work, not the way I had it anyway.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10.03.2014 19:53, ONeal Freeman wrote:
> Something I have not mentioned to Ryan is that my site.html does not
> include macros.html. I had read where macros.html will be eliminated
> from trac very soon. Is it possible that I am missing a important
> function which may be contained in the macros.html?
Good, that you mention such things, but the script files in question do
not get included by templates statements but by explicit function calls
('add_script()' from trac.web.chrome) instead.
The script containing the auto-preview js function may even load, but
not get interpreted properly. I thought of a jQuery clash or similar,
but neither have I looked at the corresponding Trac core code nor do I
feel like a JS guru to spot issues in JS code easily.
Anyway, because it works for Ryan, me and any others, we'll have to get
it working for you too. More ideas, anyone? :-)
Does it matter that my trac.conf (attached) has a section mod_python?
win 7
Is it normal for it to ask if you want to replace the contents with those from the template?
Also the small create-delete template windows overlaying the ticket.