[IMP] minor changes

bzr revid: pga@tinyerp.com-20140327103014-3h8kbrdyn33jsepp
This commit is contained in:
Parth Gajjar (Open ERP) 2014-03-27 16:00:14 +05:30
parent 473243270b
commit f75d77db4c
3 changed files with 9 additions and 4 deletions

View File

@ -26,6 +26,8 @@
'description': """
Website Gengo Translator
========================
Translate you website in one click
""",
'author': 'OpenERP SA',
'depends': [

View File

@ -15,6 +15,7 @@
var self = this;
var gengo_langs = ["ar_SA","id_ID","nl_NL","fr_CA","pl_PL","zh_TW","sv_SE","ko_KR","pt_PT","en_US","ja_JP","es_ES","zh_CN","de_DE","fr_FR","fr_BE","ru_RU","it_IT","pt_BR"];
if (gengo_langs.indexOf(website.get_context()['lang']) != -1){
self.$('.gengo_post,.gengo_wait,.gengo_inprogress,.gengo_info').remove();
self.$('button[data-action=save]')
.after(openerp.qweb.render('website.ButtonGengoTranslator'));
}

View File

@ -39,13 +39,15 @@
</section>
</div>
<div class="modal-footer">
<div class="pull-left">
<div>
<input type="checkbox" name="do_not_show"/>
Do not show this dialog later.
</div>
<button type="button" data-action="activate" class="btn btn-primary">Ok</button>
or
<a data-action="discard" data-dismiss="modal" href="#">Cancel</a>
<div>
<button type="button" data-action="activate" class="btn btn-primary">Ok</button>
or
<a data-action="discard" data-dismiss="modal" href="#">Cancel</a>
</div>
</div>
</div>
</div>