From da48e0f416ec1275fdd446cf836285d050288a1f Mon Sep 17 00:00:00 2001 From: Kasun Gajasinghe Date: Thu, 22 Jul 2010 02:30:48 +0000 Subject: [PATCH] Added icon to the webhelp Fixed the issue of scrolling, which occurs when there is only one page of data is available --- xsl/webhelp/template/common/css/positioning.css | 5 ++++- .../jquery/treeview/jquery.treeview.min.js | 1 + xsl/webhelp/template/favicon.ico | Bin 0 -> 5686 bytes xsl/webhelp/xsl/webhelp.xsl | 6 ++++++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 xsl/webhelp/template/favicon.ico diff --git a/xsl/webhelp/template/common/css/positioning.css b/xsl/webhelp/template/common/css/positioning.css index 7c9c02b59..0ce3262ca 100755 --- a/xsl/webhelp/template/common/css/positioning.css +++ b/xsl/webhelp/template/common/css/positioning.css @@ -39,8 +39,11 @@ h2 { font: bold 14pt Arial, Helvetica, geneva; } padding-left: 5px; padding-right: 30px; color: #000000; - border-left: 2px solid #cccccc; /*overflow :scroll;*/ + /*border-left: 2px solid #cccccc; overflow :scroll;*/ z-index: 1000; + + max-width: 70em; + min-width:800px; } #content h1, #content h2 { color: #cc0000; } diff --git a/xsl/webhelp/template/common/jquery/treeview/jquery.treeview.min.js b/xsl/webhelp/template/common/jquery/treeview/jquery.treeview.min.js index db03461b4..e693321dd 100755 --- a/xsl/webhelp/template/common/jquery/treeview/jquery.treeview.min.js +++ b/xsl/webhelp/template/common/jquery/treeview/jquery.treeview.min.js @@ -11,5 +11,6 @@ * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.treeview.js 4684 2008-02-07 19:08:06Z joern.zaefferer $ + * kasunbg: changed the cookieid name * */;(function($){$.extend($.fn,{swapClass:function(c1,c2){var c1Elements=this.filter('.'+c1);this.filter('.'+c2).removeClass(c2).addClass(c1);c1Elements.removeClass(c1).addClass(c2);return this;},replaceClass:function(c1,c2){return this.filter('.'+c1).removeClass(c1).addClass(c2).end();},hoverClass:function(className){className=className||"hover";return this.hover(function(){$(this).addClass(className);},function(){$(this).removeClass(className);});},heightToggle:function(animated,callback){animated?this.animate({height:"toggle"},animated,callback):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();if(callback)callback.apply(this,arguments);});},heightHide:function(animated,callback){if(animated){this.animate({height:"hide"},animated,callback);}else{this.hide();if(callback)this.each(callback);}},prepareBranches:function(settings){if(!settings.prerendered){this.filter(":last-child:not(ul)").addClass(CLASSES.last);this.filter((settings.collapsed?"":"."+CLASSES.closed)+":not(."+CLASSES.open+")").find(">ul").hide();}return this.filter(":has(>ul)");},applyClasses:function(settings,toggler){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event){toggler.apply($(this).next());}).add($("a",this)).hoverClass();if(!settings.prerendered){this.filter(":has(>ul:hidden)").addClass(CLASSES.expandable).replaceClass(CLASSES.last,CLASSES.lastExpandable);this.not(":has(>ul:hidden)").addClass(CLASSES.collapsable).replaceClass(CLASSES.last,CLASSES.lastCollapsable);this.prepend("
").find("div."+CLASSES.hitarea).each(function(){var classes="";$.each($(this).parent().attr("class").split(" "),function(){classes+=this+"-hitarea ";});$(this).addClass(classes);});}this.find("div."+CLASSES.hitarea).click(toggler);},treeview:function(settings){if(typeof(window.treeCookieId) === 'undefined' || window.treeCookieId === ""){treeCookieId = "treeview";} settings=$.extend({cookieId: treeCookieId},settings);if(settings.add){return this.trigger("add",[settings.add]);}if(settings.toggle){var callback=settings.toggle;settings.toggle=function(){return callback.apply($(this).parent()[0],arguments);};}function treeController(tree,control){function handler(filter){return function(){toggler.apply($("div."+CLASSES.hitarea,tree).filter(function(){return filter?$(this).parent("."+filter).length:true;}));return false;};}$("a:eq(0)",control).click(handler(CLASSES.collapsable));$("a:eq(1)",control).click(handler(CLASSES.expandable));$("a:eq(2)",control).click(handler());}function toggler(){$(this).parent().find(">.hitarea").swapClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).swapClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().swapClass(CLASSES.collapsable,CLASSES.expandable).swapClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightToggle(settings.animated,settings.toggle);if(settings.unique){$(this).parent().siblings().find(">.hitarea").replaceClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).replaceClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().replaceClass(CLASSES.collapsable,CLASSES.expandable).replaceClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightHide(settings.animated,settings.toggle);}}function serialize(){function binary(arg){return arg?1:0;}var data=[];branches.each(function(i,e){data[i]=$(e).is(":has(>ul:visible)")?1:0;});$.cookie(settings.cookieId,data.join(""));}function deserialize(){var stored=$.cookie(settings.cookieId);if(stored){var data=stored.split("");branches.each(function(i,e){$(e).find(">ul")[parseInt(data[i])?"show":"hide"]();});}}this.addClass("treeview");var branches=this.find("li").prepareBranches(settings);switch(settings.persist){case"cookie":var toggleCallback=settings.toggle;settings.toggle=function(){serialize();if(toggleCallback){toggleCallback.apply(this,arguments);}};deserialize();break;case"location":var current=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase();});if(current.length){current.addClass("selected").parents("ul, li").add(current.next()).show();}break;}branches.applyClasses(settings,toggler);if(settings.control){treeController(this,settings.control);$(settings.control).show();}return this.bind("add",function(event,branches){$(branches).prev().removeClass(CLASSES.last).removeClass(CLASSES.lastCollapsable).removeClass(CLASSES.lastExpandable).find(">.hitarea").removeClass(CLASSES.lastCollapsableHitarea).removeClass(CLASSES.lastExpandableHitarea);$(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings,toggler);});}});var CLASSES=$.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};$.fn.Treeview=$.fn.treeview;})(jQuery); \ No newline at end of file diff --git a/xsl/webhelp/template/favicon.ico b/xsl/webhelp/template/favicon.ico new file mode 100755 index 0000000000000000000000000000000000000000..76ece8f1aa4eb8ff5bae504412a214a1e7c67cbe GIT binary patch literal 5686 zcmeI0c}&&W6~|AR*t8h;C5kaRX!NO=j7u38Fj@_@dFePR%)``WK&^JF=tHOCk}|HP zlhi&pTqgcRz@I$N~E8N^zO~Pw;a^(H|lo|{Z2pXH!s%dfd}c>`i1a} zv}w~u+O=z^&ucH8I(3rHojXg{u3e>Dw{8*;5FkBz^pKuCdrDwnp!Dg}NBZ{dEB*TQ z6Nkeg0|pF`prAoAc<^8uHf*StVKRL9a2YvrgqD#qdh{p>4GoboW5&q%@jsOb6UNKL zi9gdaQ6^2AB$FpkmZ?*xNO*X-L`Fu+^y$Bp88fEKtXVU)%#sg3oF&oGQ8IgWw9KDB zPs@B+u;4ecaNzt(}+4YG0LAI0POlNOI`@@$gLn>WkWty^W=wr#RKF;TW}-yu78?2ylPeI~ni@0LA# z_Gn3xq&<5jDQSVbpHow1pOJmCZ{L2| zzkk0RI`n5Pha@d6P14fSB|SY&OS)uaWJqRaretMhNls3#g(&}#*G_t^X5&tb?cVgzI{vX-n}dL z?%k7bzx}s7cC;HDBDMsph1qdetv!((`o7b?{;YGKUdEz%jHZ6 zv#c$>;zP!+HFMWmmmYU{0=tATce>bbS#cp9huibSU}xwMrz7~gd6bnH)iEG2$gFd@ zJYy}(9nkA-M`D7<6YF#(>hm}CcMNiS65O6GA54gHMoozRU`S|`t|U=W6Bf^PyW`>( zeLUB_WbTqha~J)u9;eRs)-qNL_1FBx*pl^~qD_9e6q)zZbzybPEX?t%8DrUQ4=n@2+%jQeC=qF~Z#6-(P8( z8EMt3Rm1lV9Xgn2M%LTwSfl%vy7Bj$sjwu+5)t0_|^tKi_DDD!LDm;9u0$<-Bj83<2 z{nO;fh!O7^n~8(X74#qu#0<{kbJpWG+yB_D?;uL||3=v8fuD&b_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