Nick Freear avatar Nick Freear committed 83aa1e9

Fixing trackoer_show_embed site Javascript - call within $document.ready

Comments (0)

Files changed (1)

application/assets/site/js/trackoer-site.js

 */
 $.log = function(ob){if(typeof console!=='undefined'){console.log(arguments)}};
 
-/* OER Form - extended.
-*/
 $(document).ready(function(){
+
+	/* OER Form - extended.
+	*/
 	function trackoer_form() {
 		$('#ga-ac').attr('class', $('input[name=sv]:checked').val() == 'ga' ? 'show' : 'hide');
 		$.log('#sv-ga change..');
 		trackoer_form();
 	});
 	trackoer_form();
+
+
+	trackoer_show_embed();
 });
 
 /* Make every test License-tracker code clickable. A click reveals the code-snippet.
 */
-(function trackoer_show_embed(){
+function trackoer_show_embed(){
 	var elem_code = $('#cc-code')
 		, area_id = 'copy-me-js'
 		, dl = document.location
 	if (dl.hash.indexOf(area_id) != -1) {
 		elem_code.click();
 	}
-})();
+}
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.