summaryrefslogtreecommitdiff
path: root/addons/web_linkedin/static/src
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-07-16 17:17:39 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-07-16 17:17:39 +0200
commita6a5bc90c7b5720492ba1107a9f3fecf25d59ec2 (patch)
treed710b7be277f2360fad6b3cd329c9cc013229bdc /addons/web_linkedin/static/src
parentb735f2545a7f457654269ee829a7b926acfbacc5 (diff)
[IMP] changed some usage of values
bzr revid: nicolas.vanhoren@openerp.com-20120716151739-fewh5uo3kny2uqdd
Diffstat (limited to 'addons/web_linkedin/static/src')
-rw-r--r--addons/web_linkedin/static/src/js/linkedin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_linkedin/static/src/js/linkedin.js b/addons/web_linkedin/static/src/js/linkedin.js
index bd7de27bb22..c23bbfff353 100644
--- a/addons/web_linkedin/static/src/js/linkedin.js
+++ b/addons/web_linkedin/static/src/js/linkedin.js
@@ -32,7 +32,7 @@ openerp.web_linkedin = function(instance) {
this.notification.appendTo(this.$element);
this.$element.find(".linkedin_icon").click( this.do_load_linkedin );
this.removeTemplate();
- if(this.view.fields['name'].get_value()!=false){
+ if(this.get('value') != false){
/* if value get then display button of profile url */
if (this.view.fields['profile_id'].get_value() || this.view.datarecord['profile_id']) {
this.setTemplate(this.view.datarecord['profile_id'] , false );
@@ -58,7 +58,7 @@ openerp.web_linkedin = function(instance) {
}
} else {
this.removeTemplate();
- if(this.view.fields['name'].get_value()!=false){
+ if(this.get('value') != false){
var tagtr = document.createElement('tr');
tagtr.id = "profiletwittor-tr";
this.$element.append(tagtr);