jonnybradley | 20 Jun 2012 19:30
Picon

[Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[42016] branches/9.x/templates/tracker_validator.tpl

Revision: 42016
          http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42016&view=rev
Author:   jonnybradley
Date:     2012-06-20 17:30:31 +0000 (Wed, 20 Jun 2012)
Log Message:
-----------
[FIX] trackers: Don't output js when validator js not set (i.e. when feature is off)

Modified Paths:
--------------
    branches/9.x/templates/tracker_validator.tpl

Modified: branches/9.x/templates/tracker_validator.tpl
===================================================================
--- branches/9.x/templates/tracker_validator.tpl	2012-06-20 16:34:00 UTC (rev 42015)
+++ branches/9.x/templates/tracker_validator.tpl	2012-06-20 17:30:31 UTC (rev 42016)
 <at>  <at>  -1,8 +1,8  <at>  <at> 
 {* $Id$ *}
-{jq}
+{if isset($validationjs)}{jq}
 $("#editItemForm{{$trackerEditFormId}}").validate({
 	{{$validationjs}},
 	ignore: '.ignore',
 	submitHandler: function(){process_submit(this.currentForm);}
 });
-{/jq}
+{/jq}{/if}

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.
(Continue reading)


Gmane