[FIX] Minor Change In listview for additional Info.

bzr revid: bth@tinyerp.com-20111221110106-dhzed15s3jj3evov
This commit is contained in:
Bhumi Thakkar (Open ERP) 2011-12-21 16:31:06 +05:30
parent b923ef9dd9
commit 71938cbc3f
4 changed files with 14 additions and 12 deletions

View File

@ -2,7 +2,7 @@
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* Note: Code is in draft form and is subject to change
* Note: Code is in draft form and is subject to change
*/

View File

@ -22,3 +22,6 @@
.login_valid .login_error_message {
display: none;
}
.desc{
margin:0em 0 0em
}

View File

@ -51,6 +51,7 @@ openerp.web_mobile.ListView = openerp.web.Widget.extend({
});
self.$element.find("a#list-id").click(self.on_list_click);
$.mobile.changePage("#"+self.element_id, "slide", false, true);
self.$element.find("a#list-id").find('p').addClass('desc');
});
});
},

View File

@ -136,19 +136,17 @@
<ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
<li data-theme="c" t-foreach="records" t-as="record">
<t t-foreach="record[1].split(',')" t-as="data1">
<t t-if="record[1].split(',')[0]==data1">
<a id="list-id" t-att-data-id="record[0]" href="#">
<t t-esc="data1" />
</a>
</t>
</t>
<p>
<t t-foreach="record[1].split(',')" t-as="data1">
<t t-if="record[1].split(',')[0]!=data1">
<a id="list-id" t-att-data-id="record[0]" href="#">
<t t-if="record[1].split(',')[0]==data1">
<t t-esc="data1" />
</t>
</t>
</p>
<p>
<t t-if="record[1].split(',')[0]!=data1">
<t t-esc="data1" />
</t>
</p>
</a>
</t>
<t t-foreach="data" t-as="data1">
<t t-esc="data1[0]" />
</t>