[otrs-cvs] Fred/var/httpd/htdocs/js FredHTMLCheck.js,1.12,1.13
"CVS commits notifications of OTRS.org" <[email protected]> Fri, 12 Apr 2013 09:47:31 +0000
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/Fred/var/httpd/htdocs/js
In directory lancelot:/tmp/cvs-serv29388/var/httpd/htdocs/js
Modified Files:
FredHTMLCheck.js
Log Message:
Small performance improvement.
Author: mg
Index: FredHTMLCheck.js
===================================================================
RCS file: /home/cvs/Fred/var/httpd/htdocs/js/FredHTMLCheck.js,v
retrieving revision 1.12
retrieving revision 1.13
diff -2 -u -d -r1.12 -r1.13
--- FredHTMLCheck.js 14 Mar 2013 10:18:05 -0000 1.12
+++ FredHTMLCheck.js 12 Apr 2013 09:47:26 -0000 1.13
@@ -229,6 +229,12 @@
Events,
Event;
- // Get element HTML by wrapping it in a div and calling .html() on that
+ // Don't output this error for fred itself.
+ // We also currently need onclick events in the main menu.
+ if ( $this.closest('.DevelFredContainer, #Navigation').length ) {
+ return;
+ }
+
+ // Get element HTML by wrapping it in a div and calling .html() on that
$Container = $('<div></div>');
$Container.append( $this.clone() );
@@ -247,14 +253,10 @@
}
}
- // Don't output this error for fred itself.
- // We also currently need onclick events in the main menu.
- if ( !$this.closest('.DevelFredContainer, #Navigation').length ) {
- outputError(
- $this,
- 'BadPracticeEvent',
- 'Event <code>"' + Events + '"</code> used',
- 'Please remove it and replace it with a proper substitute.'
- );
- }
+ outputError(
+ $this,
+ 'BadPracticeEvent',
+ 'Event <code>"' + Events + '"</code> used',
+ 'Please remove it and replace it with a proper substitute.'
+ );
}
});
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log