summaryrefslogtreecommitdiff
path: root/addons/web_linkedin/static/src/js/linkedin.js
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2012-06-27 13:22:05 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2012-06-27 13:22:05 +0530
commitea46eb264517fac17720f3a9a524c766e891ac1d (patch)
treed4caefc275a15478408eb507d4271eb3c1cc2f6d /addons/web_linkedin/static/src/js/linkedin.js
parent112bc2ad6a33c73a83d50d7b7f5fe5e0b8e96792 (diff)
[IMP] Improved code.
bzr revid: jra@tinyerp.com-20120627075205-g8cgoev08w6ytw7s
Diffstat (limited to 'addons/web_linkedin/static/src/js/linkedin.js')
-rw-r--r--addons/web_linkedin/static/src/js/linkedin.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/addons/web_linkedin/static/src/js/linkedin.js b/addons/web_linkedin/static/src/js/linkedin.js
index a04f0c69737..3e5f9a95c13 100644
--- a/addons/web_linkedin/static/src/js/linkedin.js
+++ b/addons/web_linkedin/static/src/js/linkedin.js
@@ -152,23 +152,24 @@ openerp.web_linkedin = function(instance) {
APIKeyWarning: function(e) {
var self = this;
this.dialog = instance.web.dialog($(QWeb.render("Register.Linkedin")), {
- title: _t("Configure your Linkedin Key API"),
+ title: _t("Connect to LinkedIn"),
modal: true,
width : 840,
height:500,
- close: function(){ self.dialog.remove();}
+ close: function(){ self.dialog.remove();},
+ buttons:[
+ {
+ text: _t("Cancel"),
+ click: function() { self.dialog.remove(); }
+ }]
});
- this.dialog.parent().find('.ui-dialog-titlebar').append('<button class="close">No Thanks</button>').click(function(){
- self.dialog.remove();
- })
- $('.close').css({ 'margin': '10px 0 0 19px'})
$("#register").click(function() {
var key = $("#apikey").val();
if(key.length){
var user = new instance.web.DataSet(self, "res.users");
user.call("set_linkedin_api_key", [key]);
self.dialog.remove(),
- self.__parentedParent.reload();
+ //self.__parentedParent.reload();
}
else {
$("#apikey").css({'background-color':'#F66 '})