[FIX] google_drive: show icon via css instead of injecting html
This commit is contained in:
parent
775022e01f
commit
2b8605c6e2
|
@ -0,0 +1,5 @@
|
|||
li.oe_share_gdoc > a:after {
|
||||
content: url('/google_drive/static/src/img/drive_icon.png');
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -38,7 +38,7 @@ openerp.google_drive = function (instance, m) {
|
|||
}
|
||||
if (!already_there){
|
||||
self.add_items('other', [{
|
||||
label: res.name+ '<img style="position:absolute;right:5px;height:20px;width:20px;" title="Google Drive" src="google_drive/static/src/img/drive_icon.png"/>',
|
||||
label: res.name,
|
||||
config_id: res.id,
|
||||
res_id: res_id,
|
||||
res_model: view.dataset.model,
|
||||
|
@ -73,4 +73,4 @@ openerp.google_drive = function (instance, m) {
|
|||
},
|
||||
|
||||
});
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<data>
|
||||
<template id="assets_backend" name="google_drive assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/google_drive/static/src/css/google_drive.css" />
|
||||
<script type="text/javascript" src="/google_drive/static/src/js/gdrive.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue