From 5214682def684b3b9153ca161b4671aa2edd0583 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 26 Nov 2009 21:07:54 +0000 Subject: onChange イベントを発行するように修正 フォーカスを戻すように修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36007 d0d07461-0603-4401-acd4-de1884942a52 --- option-selector.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'option-selector.js') diff --git a/option-selector.js b/option-selector.js index 89c4b28..ab90ead 100755 --- a/option-selector.js +++ b/option-selector.js @@ -38,13 +38,13 @@ let PLUGIN_INFO = Option Selector Select a option of the select element. select 要素の option を選択する。 - 1.0.0 + 1.0.1 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/option-selector.js 2.2pre - 2.2pre + 2.3 on "select" element. ]]> @@ -64,6 +64,10 @@ let PLUGIN_INFO = 'Select a option of the select element', function (args) { targetElement.value = args.string; + let event = content.document.createEvent('Event'); + event.initEvent('change', true, true); + targetElement.dispatchEvent(event); + targetElement.focus(); }, { literal: 0, -- cgit v1.2.3