From b6e9362e453afc084ffd2a1e9e4ff49b5aad4e28 Mon Sep 17 00:00:00 2001 From: Jove Yu Date: Wed, 26 Mar 2014 17:27:53 +0800 Subject: [PATCH] fix xadmin.widget.select-transfer.js --- xadmin/static/xadmin/js/xadmin.widget.select-transfer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xadmin/static/xadmin/js/xadmin.widget.select-transfer.js b/xadmin/static/xadmin/js/xadmin.widget.select-transfer.js index 03f6a61fb..0741600a8 100644 --- a/xadmin/static/xadmin/js/xadmin.widget.select-transfer.js +++ b/xadmin/static/xadmin/js/xadmin.widget.select-transfer.js @@ -182,7 +182,7 @@ this.btn_add_all.toggleClass('disabled', this.from_box.find('option').length == 0); this.btn_remove_all.toggleClass('disabled', this.to_box.find('option').length == 0); }, - filter_key_up: function(e) { + filter_key_up: function(event) { var from = this.from_box[0]; // don't submit form if user pressed Enter if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) { @@ -196,7 +196,7 @@ from.selectedIndex = temp; return true; }, - filter_key_down: function(e) { + filter_key_down: function(event) { var from = this.from_box[0]; if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) { return false; @@ -238,4 +238,4 @@ f.find('.select-transfer').select_transfer(); }); -})(jQuery) \ No newline at end of file +})(jQuery)