From 1667f51c2ab80c8a33216d0d4fbb9e5af50bb76f Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 30 Sep 2006 23:30:13 +0000 Subject: moved photo description to iframe to make it html-enabled (still not sure if using div would be a better idea) git-svn-id: http://svn.klever.net/kin/fireflix/trunk@172 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'content/fireflix.js') diff --git a/content/fireflix.js b/content/fireflix.js index 337354e..6773134 100644 --- a/content/fireflix.js +++ b/content/fireflix.js @@ -754,6 +754,25 @@ var fireflix = { } ); }, + render_description_frame: function(content) { + if(!content) { + try { + this.searchresult_description.contentDocument.lastChild.innerHTML + = ''; + }catch(e) { } /* it will throw exceptions when the iframe isn't well + prepared to meet me, but it's unimportant then, anyway */ + }else{ + this.searchresult_description.contentDocument.lastChild.setAttribute( + 'style', + 'font-size: 80%; margin: 1px 3px; font-family: arial, sans-serif' + ); + this.searchresult_description.contentDocument.lastChild.innerHTML + = content; + var ls = this.searchresult_description.contentDocument.links; + for(var l=0;l