Commits

Ratnadeep Debnath committed ad6654b

Fixed error in project widgets page.

Comments (0)

Files changed (2)

transifex/addons/charts/templates/charts/widget_snippet.html

 
             code = "<a target=\"_blank\" style=\"text-decoration:none; color:black; font-size:66%\" href=\"" + base_url + "\" \n";
             code += "title=\""+tip+"\">Top translations: " +project_slug+ " » "+resource_slug+"</a><br/>\n";
-            code += "<img border=\"0\" src=\""+img_url+"\"/><br/>\n";
-            code +=  "<a target=\"_blank\" href=\"{{SITE_URL_PREFIX}}{% url transifex.home %}\"><img border=\"0\" src=\"{% static "charts/images/tx-logo-micro.png\" %}"/></a>";
+            code += '<img border="0" src="'+img_url+'"/><br/>';
+            code +=  '<a target="_blank" href="{{SITE_URL_PREFIX}}{% url transifex.home %}"><img border="0" src="{% static "charts/images/tx-logo-micro.png" %}"/></a>';
             return code;
         }
 

transifex/addons/charts/templates/resource_chart_js.html

     link_tx.target = "_blank";
     link_tx.href = "{{SITE_URL_PREFIX}}{% url transifex.home %}";
     link_tx.title = "See more information on Transifex.net";
-    link_tx.innerHTML = "<img border=\"0\" src=\"{% static "charts/images/tx-logo-micro.png\" %}"/>";
+    link_tx.innerHTML = '<img border="0" src="{% static "charts/images/tx-logo-micro.png" %}"/>';
 
     link_resource = document.createElement("a");
     link_resource.target = "_blank";