[IMP] remove double click on a tag and add double click method of tr tag.

bzr revid: ysa@tinyerp.com-20110721095508-v5hdi94amw8o8w2n
This commit is contained in:
Yogesh (OpenERP) 2011-07-21 15:25:08 +05:30
parent 08a6c94a82
commit 1dc16ebf67
3 changed files with 8 additions and 6 deletions

View File

@ -10,7 +10,6 @@ tr.ui-selected td {
.row:hover{
background-color: #F3F3F3;
color : blue;
}
.fields-selector-export {

View File

@ -230,6 +230,7 @@ openerp.base_export.Export = openerp.base.Dialog.extend({
$(this).find('a').focus();
$(this).addClass("ui-selected");
}
return false;
});
$("tr[id^='treerow-" + record.id + "']").keydown(function (e) {
@ -266,11 +267,13 @@ openerp.base_export.Export = openerp.base.Dialog.extend({
break;
}
});
$("tr[id^='treerow-" + record.id + "']").dblclick(function (e) {
var field_id = $(this).find("a").attr("id");
if(field_id){
self.add_field(field_id.split('-')[1], $(this).find("a").attr("string"))
}
});
});
$('[id^=export-]').dblclick(function(){
self.add_field(this.id.split('-')[1], this.text)
});
$('#fields_list').mouseover(function(event){
if(event.relatedTarget){
if (event.relatedTarget.attributes['id'] && event.relatedTarget.attributes['string']){

View File

@ -99,7 +99,7 @@
</t>
</td>
<td valign="top" align="left" style="cursor: pointer;">
<a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0)" style="text-decoration: none;">
<a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
<t t-esc="field.string"/>
</a>
</td>