[IMP] Improve code for offering diff resolution of logo.

bzr revid: jra@tinyerp.com-20121112132604-jnol0v5opocw5da5
This commit is contained in:
Jiten (OpenERP) 2012-11-12 18:56:04 +05:30
commit 4d1787644a
6 changed files with 20 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1118,6 +1118,10 @@ instance.web.WebClient = instance.web.Client.extend({
if($(this).attr('id') == "goldto"){
self.$el.find('.oe_logo').find('img').attr('src','web/static/src/img/openerp_partner_gold.png')
}
if($(this).attr('id') == "community"){
self.$el.find('.oe_logo').find('img').attr('src','web/static/src/img/openerp_community.png')
}
self.$el.find('.oe_logo').find('img').removeAttr("style");
});
$(this).find('div a').click(function(){
if($(this).parent().attr('id') == "free"){
@ -1131,6 +1135,12 @@ instance.web.WebClient = instance.web.Client.extend({
}
if($(this).parent().attr('id') == "gold"){
self.$el.find('.oe_logo').find('img').attr('src','web/static/src/img/openerp_partner_gold.png')
}
if($(this).parent().attr('id') == "community"){
self.$el.find('.oe_logo').find('img').attr('src','web/static/src/img/openerp_community.png')
}
if($(this).attr('id') == "vec"){
self.$el.find('.oe_logo').find('img').attr('src','web/static/src/img/logo1.png')
}
if($(this).attr('id') == "low"){
self.$el.find('.oe_logo').find('img').css('width','150px')

View File

@ -20,24 +20,29 @@
</span>
</div>
<div class="freeto">
<a id="freeto"><img alt="Test" src="/web/static/src/img/logo.png"></img></a>
<a id="freeto"><img alt="Test" src="/web/static/src/img/logo.png" width="45px" height="170px"></img></a>
<div><span>Free to Use</span><br/>
<span id="free"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res |</a><a id="vec" href="#">Vectorial</a></span></div>
</div>
<div class="readyto">
<a id="readyto"><img alt="Test" src="/web/static/src/img/openerp_partner_ready.png"></img></a>
<div><span>Official Ready Partners Only</span><br/>
<span id="ready"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res |</a><a id="vec" href="#">Vectorial</a></span></div>
<span id="ready"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res</a></span></div>
</div>
<div class="silverto">
<a id="silverto"><img alt="Test" src="/web/static/src/img/openerp_partner_silver.png"></img></a>
<div><span>Official Silver Partners Only</span><br/>
<span id="silver"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res |</a><a id="vec" href="#">Vectorial</a></span></div>
<span id="silver"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res</a></span></div>
</div>
<div class="goldto" style="border-bottom: 0px;">
<div class="goldto">
<a id="goldto"><img alt="Test" src="/web/static/src/img/openerp_partner_gold.png"></img></a>
<div><span>Official Golden Partners Only</span><br/>
<span id="gold"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res |</a><a id="vec" href="#">Vectorial</a></span></div>
<span id="gold"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res</a></span></div>
</div>
<div class="community" style="border-bottom: 0px;">
<a id="community"><img alt="Test" src="/web/static/src/img/openerp_community.png"></img></a>
<div><span>Community Members Only</span><br/>
<span id="community"><a id="low" href="#">Low Res |</a><a id="high" href="#">High Res</a></span></div>
</div>
</div>
</div>