summaryrefslogtreecommitdiffstats
path: root/admin/survey/script/jquery/jquery.selectbox-0.6.1/jquery.selectbox-0.6.1.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/survey/script/jquery/jquery.selectbox-0.6.1/jquery.selectbox-0.6.1.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/survey/script/jquery/jquery.selectbox-0.6.1/jquery.selectbox-0.6.1.js b/admin/survey/script/jquery/jquery.selectbox-0.6.1/jquery.selectbox-0.6.1.js
index 1a1ca5d..21bcdb8 100644
--- a/admin/survey/script/jquery/jquery.selectbox-0.6.1/jquery.selectbox-0.6.1.js
+++ b/admin/survey/script/jquery/jquery.selectbox-0.6.1/jquery.selectbox-0.6.1.js
@@ -12,6 +12,11 @@
* @author Krzysztof SuszyƄski <k.suszynski@wit.edu.pl>
**/
jQuery.fn.selectbox = function(options){
+
+ // Na mobitelu pustimo vedno default dropdowne
+ if ($('.mobile_header:visible').length != 0)
+ return;
+
/* Default settings */
var settings = {
className: 'jquery-selectbox',
@@ -159,7 +164,7 @@ jQuery.fn.selectbox = function(options){
jQuery('.'+settings.className + '-currentItem', replacement).text(v.text());
}
});
- replacement.find('.' + settings.className + '-moreButton').click(function(){
+ replacement.find('.'+settings.className+'-moreButton, .'+settings.className+'-currentItem').click(function(){
var thisMoreButton = jQuery(this);
var otherLists = jQuery('.' + settings.className + '-list')
.not(thisMoreButton.siblings('.' + settings.className + '-list'));