[IMP] added minor feature in Widget to ease development
bzr revid: nicolas.vanhoren@openerp.com-20130819092408-rdi91pokwuuy3f5e
This commit is contained in:
@@ -761,6 +761,8 @@ openerp.Widget = openerp.Class.extend(openerp.PropertiesMixin, {
|
||||
* @returns {jQuery} selector match
|
||||
*/
|
||||
$: function(selector) {
|
||||
if (selector === undefined)
|
||||
return this.$el;
|
||||
return this.$el.find(selector);
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user