summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoumin Ha <youmin.ha@samsung.com>2013-04-07 18:50:33 +0900
committerYoumin Ha <youmin.ha@samsung.com>2013-04-10 23:50:39 +0900
commit6d28ef26ef5a4ee447de1239b69253a0613d114b (patch)
treea44caccd794f25e715f339c012991b553862e338
parenta835e66386f1e1afb4da1c60115579779157d485 (diff)
downloadweb-ui-fw-6d28ef26ef5a4ee447de1239b69253a0613d114b.tar.gz
web-ui-fw-6d28ef26ef5a4ee447de1239b69253a0613d114b.tar.bz2
web-ui-fw-6d28ef26ef5a4ee447de1239b69253a0613d114b.zip
JQM: Do not add ui-btn-icon-only class at the select button
The Tizen patch does not consider the possibility of changing text in the button. So this commit removes 'ui-btn-icon-only' class from the innerClass of the select button. Fixes N_SE-30897 issue. (Changing text of the button) Change-Id: I8a1d2143dccc9f53ec8f9bdcf53456b10413e7e8
-rw-r--r--libs/patch/0041-JQM-Remove-ui-btn-icon-only-class-from-select-button.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/libs/patch/0041-JQM-Remove-ui-btn-icon-only-class-from-select-button.patch b/libs/patch/0041-JQM-Remove-ui-btn-icon-only-class-from-select-button.patch
new file mode 100644
index 00000000..fdcc4a3d
--- /dev/null
+++ b/libs/patch/0041-JQM-Remove-ui-btn-icon-only-class-from-select-button.patch
@@ -0,0 +1,28 @@
+From 4c6c887221f11b8fd9496e71a46d8dac7067c3c2 Mon Sep 17 00:00:00 2001
+From: Youmin Ha <youmin.ha@samsung.com>
+Date: Sun, 7 Apr 2013 18:47:25 +0900
+Subject: [PATCH] JQM: Remove ui-btn-icon-only class from select button
+
+Change-Id: Ia68ea5fb23feb0c427d58110e7e70f0a239723c8
+---
+ .../jquery-mobile-1.2.0/js/widgets/forms/select.js | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js
+index 9c78a90..06f4c75 100644
+--- a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js
++++ b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js
+@@ -114,6 +114,10 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
+
+ this.setButtonText();
+
++ // TIZEN fix: The TIZEN buttonMarkup patch adds 'ui-btn-icon-only' class to the ui-btn-inner.
++ // It makes the text not to be shown, so the class must be removed. (Like JQM)
++ button.children('.ui-btn-inner').removeClass('ui-btn-icon-only');
++
+ // Opera does not properly support opacity on select elements
+ // In Mini, it hides the element, but not its text
+ // On the desktop,it seems to do the opposite
+--
+1.7.9.5
+