[IMP] Added css for the ' Close(X)' icon of the dialog box when the title size increases than overlap the title.

bzr revid: psa@tinyerp.com-20130322091026-m0eqoqnt1t2p184v
This commit is contained in:
Paramjit Singh Sahota
2013-03-22 14:40:26 +05:30
parent f1db1ed778
commit bd6a436bbb
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ class mail_thread(osv.AbstractModel):
res[id]['message_summary'] = "<span class='oe_kanban_mail_new' title='%s'><span class='oe_e'>9</span> %d %s</span>" % (title, res[id].pop('message_unread_count'), _("New"))
return res
def check_access_right(self, cr, uid,ids , context=None ):
def check_access_right(self, cr, uid, ids, context=None):
grp_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'base', 'group_no_one')
user_pid = self.pool.get('res.groups').read(cr, uid, grp_id[1], ['users'], context=context)['users']
if uid in user_pid:
+3 -1
View File
@@ -646,7 +646,9 @@
width: 10px !important;
height: 12px !important;
}
.openerp.ui-dialog .ui-dialog-titlebar .ui-dialog-title{
padding-right: 20px;
}
.openerp .oe_followers .oe_show_more{
cursor: pointer;
}
+2 -2
View File
@@ -218,8 +218,8 @@ openerp_mail_followers = function(session, mail) {
// truncate number of displayed followers
var truncated = this.followers.slice(0, this.displayed_nb);
_(truncated).each(function (record) {
self.ds_model.call('check_access_right', [self.session.uid]).then(function(r){
self.check_access = r;
self.ds_model.call('check_access_right', [self.session.uid]).then(function(result){
self.check_access = result;
record.avatar_url = mail.ChatterUtils.get_image(self.session, 'res.partner', 'image_small', record.id);
$(session.web.qweb.render('mail.followers.partner', {'record': record, 'widget': self})).appendTo(node_user_list);
})
@@ -31,7 +31,6 @@
<div t-name="mail.followers.partner" class='oe_partner'>
<img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
<a t-attf-href="#model=res.partner&amp;id=#{record.id}"><t t-raw="record.name"/></a>
<t t-js="d">console.log("dsfsdfd",d)</t>
<img t-if="widget.check_access" class="oe_edit_subtype" t-att-src='_s + "/mail/static/src/img/icon-edit.gif"' title="Edit Subtype" t-att-data-id="record.id"/>
<span t-if="widget.view_is_editable" class="oe_remove_follower oe_e" title="Remove this follower" t-att-data-id="record.id">X</span>
</div>