123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
-
- if(qvitterEnabled) {
- $('#site_nav_global_primary').find('.nav').first().prepend('<li id="toggleqvitter" title="' + toggleText + '"><a href="' + qvitterAllLink + '">' + toggleText + '</a></li>');
- }
- else {
- $('#site_nav_global_primary').find('.nav').first().prepend('<li id="toggleqvitter" title="' + toggleText + '"><a href="' + location.href + '">' + toggleText + '</a></li>');
- $('#toggleqvitter > a').click(function(e){
- e.preventDefault();
- $.get(toggleQvitterAPIURL,function(data){
- if(data.success === true) {
- window.location.href = qvitterAllLink;
- }
- });
- });
- }
|