From 0c220389fb38b8ba0565a2ec6ee081fd6df36386 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 7 Apr 2014 14:59:01 +0000 Subject: [PATCH] Remove click handler from read-only account widget --- etemplate/js/et2_widget_selectAccount.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index 038a1414fa..6d04099552 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -692,12 +692,16 @@ var et2_selectAccount_ro = et2_link_string.extend([et2_IDetachedDOM], { this._super.apply(this, arguments); // Don't make it look like a link though - jQuery('li',this.list).removeClass("et2_link et2_link_string"); + jQuery('li',this.list).removeClass("et2_link et2_link_string") + // No clicks either + .off(); return; } // Don't make it look like a link - jQuery('li',this.list).removeClass("et2_link et2_link_string"); + jQuery('li',this.list).removeClass("et2_link et2_link_string") + // No clicks either + .off(); if(this.options.select_options && this.options.select_options[_value] || this.options.empty_label) {