From 89b74336f45183bd5d8f7fd2a2a428a65b91a58d Mon Sep 17 00:00:00 2001
From: shridhar <ssagari@faichi.com>
Date: Mon, 17 Aug 2015 12:46:01 +0530
Subject: [PATCH] Issue ime_select_first_script by ssagari: Fixed all instances
 of IME bug.

---
 js/ime_script.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/js/ime_script.js b/js/ime_script.js
index 9df2d7f..ce2ecd4 100644
--- a/js/ime_script.js
+++ b/js/ime_script.js
@@ -8,6 +8,17 @@
     attach: function(context, settings) {
       var flb_uid = Drupal.settings.ime.field_ids;
       var flb_path = Drupal.settings.ime.jqueryImePath;
+      var values = [];
+      $.each($.ime.languages, function(key, value) {
+        var obj = {}
+        obj[key] = value['inputmethods'][0];
+        if(key != 'en') {
+          values.push(obj);
+        }
+      });
+      $.each(values, function(key, value) {
+        $.extend($.ime.preferences['registry']['imes'], value);
+      });
       $(flb_uid).ime({imePath: flb_path});
     }
   };
-- 
1.9.1

