From d9ff47b011314902c4f30337013b6e4abe369a8e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 13 Oct 2015 02:57:45 -0400 Subject: [PATCH] Don't use deprecated (soon) jQuery .bind() and .unbind() methods --- plugins/userinfo/userinfo.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/userinfo/userinfo.js b/plugins/userinfo/userinfo.js index 70a5085..1c0c513 100644 --- a/plugins/userinfo/userinfo.js +++ b/plugins/userinfo/userinfo.js @@ -4,10 +4,10 @@ rcmail.addEventListener('init', function(evt) { // <span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span> var tab = $('<span>').attr('id', 'settingstabpluginuserinfo').addClass('tablink'); - + var button = $('<a>').attr('href', rcmail.env.comm_path+'&_action=plugin.userinfo').html(rcmail.gettext('userinfo', 'userinfo')).appendTo(tab); - button.bind('click', function(e){ return rcmail.command('plugin.userinfo', this) }); - + button.click(function(e) { return rcmail.command('plugin.userinfo', this); }); + // add button and register command rcmail.add_element(tab, 'tabs'); rcmail.register_command('plugin.userinfo', function(){ rcmail.goto_url('plugin.userinfo') }, true); -- Gitblit v1.9.1