|
@ -141,9 +141,9 @@ $.fn.dropdown = function(parameters) { |
|
|
|
|
|
|
|
|
create: { |
|
|
create: { |
|
|
id: function() { |
|
|
id: function() { |
|
|
module.verbose('Creating unique id for element'); |
|
|
|
|
|
id = module.get.uniqueID(); |
|
|
|
|
|
|
|
|
id = (Math.random().toString(16) + '000000000').substr(2,8); |
|
|
elementNamespace = '.' + id; |
|
|
elementNamespace = '.' + id; |
|
|
|
|
|
module.verbose('Creating unique id for element', id); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -823,6 +823,9 @@ $.fn.dropdown = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
get: { |
|
|
get: { |
|
|
|
|
|
id: function() { |
|
|
|
|
|
return id; |
|
|
|
|
|
}, |
|
|
text: function() { |
|
|
text: function() { |
|
|
return $text.text(); |
|
|
return $text.text(); |
|
|
}, |
|
|
}, |
|
@ -970,9 +973,6 @@ $.fn.dropdown = function(parameters) { |
|
|
value = module.get.text(); |
|
|
value = module.get.text(); |
|
|
} |
|
|
} |
|
|
return $selectedItem || false; |
|
|
return $selectedItem || false; |
|
|
}, |
|
|
|
|
|
uniqueID: function() { |
|
|
|
|
|
return (Math.random().toString(16) + '000000000').substr(2,8); |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|