From 7c2f1fd5803e2bc1404ca562cd135e24f13c92f6 Mon Sep 17 00:00:00 2001
From: raghunayyar <me@iraghu.com>
Date: Fri, 11 Oct 2013 18:46:59 +0530
Subject: [PATCH] Puts the language divider in place. thanks @Kondou-ger ;)

---
 settings/js/personal.js         | 4 ----
 settings/templates/personal.php | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/settings/js/personal.js b/settings/js/personal.js
index e3a5318119..cdf7d0e963 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -171,10 +171,6 @@ $(document).ready(function(){
         }
     });
 
-	// Show only the not selectable optgroup
-	// Choosen only shows optgroup-labels if there are options in the optgroup
-	$(".languagedivider").hide();
-
 	$("#languageinput").change( function(){
 		// Serialize the data
 		var post = $( "#languageinput" ).serialize();
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 854cc93b4f..d76cb16763 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -113,6 +113,7 @@ if($_['passwordChangeSupported']) {
 					<?php p($language['name']);?>
 				</option>
 			<?php endforeach;?>
+			<option class="languagedivider">-</option>
 			<?php foreach($_['languages'] as $language):?>
 				<option value="<?php p($language['code']);?>">
 					<?php p($language['name']);?>
-- 
GitLab