carrier 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/Gemfile +1 -1
  2. data/TODO +1 -0
  3. data/VERSION +1 -1
  4. data/app/assets/images/carrier/chosen-sprite.png +0 -0
  5. data/app/assets/javascripts/carrier/chosen.jquery.min.js +10 -0
  6. data/app/assets/javascripts/carrier/chosen.js +5 -0
  7. data/app/assets/stylesheets/{carrier.css → carrier/carrier.css} +43 -5
  8. data/app/assets/stylesheets/carrier/chosen.css +367 -0
  9. data/app/controllers/carrier/chains_controller.rb +7 -5
  10. data/app/controllers/carrier/messages_controller.rb +4 -6
  11. data/app/helpers/carrier/application_helper.rb +5 -8
  12. data/app/models/carrier/chain.rb +2 -2
  13. data/app/models/carrier/message.rb +23 -19
  14. data/app/models/carrier/message/validations.rb +1 -1
  15. data/app/validators/recipients/exclude_self.rb +1 -1
  16. data/app/validators/recipients/recipients_presence_validator.rb +8 -0
  17. data/app/validators/recipients/right_recipients_validator.rb +10 -0
  18. data/app/views/carrier/messages/_chosen.html.erb +7 -0
  19. data/app/views/carrier/messages/_form.html.erb +30 -24
  20. data/app/views/carrier/messages/_head.html.erb +1 -6
  21. data/app/views/carrier/messages/_index_message.html.erb +2 -2
  22. data/app/views/carrier/messages/{_message_expanded.html.erb → _message.html.erb} +0 -0
  23. data/app/views/carrier/messages/_message_collapsed.html.erb +1 -1
  24. data/app/views/carrier/messages/_nav_messages.html.erb +5 -5
  25. data/app/views/carrier/messages/_recipients.html.erb +1 -0
  26. data/app/views/carrier/messages/_reply.html.erb +17 -14
  27. data/app/views/carrier/messages/as_sent.html.erb +4 -0
  28. data/app/views/carrier/messages/create.js.erb +1 -1
  29. data/app/views/carrier/messages/index.html.erb +12 -1
  30. data/app/views/carrier/messages/new.html.erb +6 -0
  31. data/app/views/carrier/messages/reply.js.erb +1 -1
  32. data/app/views/carrier/messages/show.html.erb +34 -32
  33. data/app/views/layouts/carrier/application.html.erb +2 -2
  34. data/app/views/partials/_error_messages_for.html.erb +2 -2
  35. data/carrier.gemspec +21 -115
  36. data/config/locales/carrier.en.yml +11 -5
  37. data/config/locales/carrier.ru.yml +12 -1
  38. data/config/routes.rb +6 -2
  39. data/lib/carrier.rb +0 -1
  40. data/lib/carrier/configuration.rb +6 -8
  41. data/lib/carrier/configuration/routes.rb +19 -0
  42. data/lib/carrier/configuration/user.rb +24 -0
  43. data/lib/carrier/rails/engine.rb +15 -4
  44. data/lib/carrier/rails/helpers.rb +17 -3
  45. data/lib/carrier/version.rb +3 -0
  46. data/spec/dummy/config/initializers/carrier.rb +2 -0
  47. data/spec/integration/carrier_spec.rb +4 -2
  48. data/spec/requests/main_spec.rb +0 -1
  49. metadata +134 -223
  50. data/app/assets/javascripts/autocomplete.js +0 -4
  51. data/app/assets/javascripts/autocomplete/i18n/jquery-ui-i18n.js +0 -1379
  52. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-af.js +0 -23
  53. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ar-DZ.js +0 -23
  54. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ar.js +0 -23
  55. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-az.js +0 -23
  56. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-bg.js +0 -24
  57. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-bs.js +0 -23
  58. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ca.js +0 -23
  59. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-cs.js +0 -23
  60. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-da.js +0 -23
  61. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-de.js +0 -23
  62. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-el.js +0 -23
  63. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-en-AU.js +0 -23
  64. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-en-GB.js +0 -23
  65. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-en-NZ.js +0 -23
  66. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-eo.js +0 -23
  67. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-es.js +0 -23
  68. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-et.js +0 -23
  69. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-eu.js +0 -23
  70. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-fa.js +0 -23
  71. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-fi.js +0 -23
  72. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-fo.js +0 -23
  73. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-fr-CH.js +0 -23
  74. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-fr.js +0 -25
  75. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-gl.js +0 -23
  76. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-he.js +0 -23
  77. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-hr.js +0 -23
  78. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-hu.js +0 -23
  79. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-hy.js +0 -23
  80. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-id.js +0 -23
  81. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-is.js +0 -23
  82. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-it.js +0 -23
  83. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ja.js +0 -23
  84. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ko.js +0 -23
  85. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-kz.js +0 -23
  86. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-lt.js +0 -23
  87. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-lv.js +0 -23
  88. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ml.js +0 -23
  89. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ms.js +0 -23
  90. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-nl.js +0 -23
  91. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-no.js +0 -23
  92. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-pl.js +0 -23
  93. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-pt-BR.js +0 -23
  94. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-pt.js +0 -22
  95. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-rm.js +0 -21
  96. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ro.js +0 -26
  97. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ru.js +0 -23
  98. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-sk.js +0 -23
  99. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-sl.js +0 -24
  100. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-sq.js +0 -23
  101. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-sr-SR.js +0 -23
  102. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-sr.js +0 -23
  103. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-sv.js +0 -23
  104. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-ta.js +0 -23
  105. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-th.js +0 -23
  106. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-tj.js +0 -23
  107. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-tr.js +0 -23
  108. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-uk.js +0 -23
  109. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-vi.js +0 -23
  110. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-zh-CN.js +0 -23
  111. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-zh-HK.js +0 -23
  112. data/app/assets/javascripts/autocomplete/i18n/jquery.ui.datepicker-zh-TW.js +0 -23
  113. data/app/assets/javascripts/autocomplete/jquery.ui.autocomplete.min.js +0 -32
  114. data/app/assets/javascripts/autocomplete/jquery.ui.core.min.js +0 -17
  115. data/app/assets/javascripts/autocomplete/jquery.ui.position.min.js +0 -16
  116. data/app/assets/javascripts/autocomplete/jquery.ui.widget.min.js +0 -15
  117. data/app/assets/javascripts/carrier.js +0 -8
  118. data/app/assets/javascripts/rich-multiselect/jquery-ui.min.js +0 -405
  119. data/app/assets/javascripts/rich-multiselect/locale/ui-multiselect-de.js +0 -11
  120. data/app/assets/javascripts/rich-multiselect/locale/ui-multiselect-en.js +0 -11
  121. data/app/assets/javascripts/rich-multiselect/locale/ui-multiselect-es.js +0 -11
  122. data/app/assets/javascripts/rich-multiselect/locale/ui-multiselect-fr.js +0 -11
  123. data/app/assets/javascripts/rich-multiselect/locale/ui-multiselect-it.js +0 -13
  124. data/app/assets/javascripts/rich-multiselect/plugins/localisation/jquery.localisation-min.js +0 -7
  125. data/app/assets/javascripts/rich-multiselect/plugins/localisation/jquery.localisation-pack.js +0 -7
  126. data/app/assets/javascripts/rich-multiselect/plugins/localisation/jquery.localisation.js +0 -99
  127. data/app/assets/javascripts/rich-multiselect/plugins/scrollTo/README.txt +0 -37
  128. data/app/assets/javascripts/rich-multiselect/plugins/scrollTo/changes.txt +0 -82
  129. data/app/assets/javascripts/rich-multiselect/plugins/scrollTo/jquery.scrollTo-min.js +0 -11
  130. data/app/assets/javascripts/rich-multiselect/plugins/scrollTo/jquery.scrollTo.js +0 -207
  131. data/app/assets/javascripts/rich-multiselect/ui.multiselect.js +0 -339
  132. data/app/assets/stylesheets/carrier_rich.css +0 -48
  133. data/app/assets/stylesheets/carrier_simple.css +0 -15
  134. data/app/assets/stylesheets/rich-multiselect/ui.multiselect.css +0 -30
  135. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  136. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_55_fbf9ee_40x100.png +0 -0
  137. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_65_ffffff_40x100.png +0 -0
  138. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_75_cccccc_40x100.png +0 -0
  139. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_75_dadada_40x100.png +0 -0
  140. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_75_e6e6e6_40x100.png +0 -0
  141. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  142. data/app/assets/stylesheets/ui-lightness/images/ui-bg_flat_95_fef1ec_40x100.png +0 -0
  143. data/app/assets/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  144. data/app/assets/stylesheets/ui-lightness/images/ui-icons_2e83ff_256x240.png +0 -0
  145. data/app/assets/stylesheets/ui-lightness/images/ui-icons_454545_256x240.png +0 -0
  146. data/app/assets/stylesheets/ui-lightness/images/ui-icons_888888_256x240.png +0 -0
  147. data/app/assets/stylesheets/ui-lightness/images/ui-icons_cd0a0a_256x240.png +0 -0
  148. data/app/assets/stylesheets/ui-lightness/jquery-ui-1.8.14.custom.css +0 -342
  149. data/app/helpers/carrier/post_helper.rb +0 -4
  150. data/app/validators/recipients/recipients_validator.rb +0 -10
  151. data/app/views/carrier/messages/rich/_multiselect.html.erb +0 -18
  152. data/app/views/carrier/messages/rich/_recipients.html.erb +0 -6
  153. data/app/views/carrier/messages/simple/_autocomplete.html.erb +0 -45
  154. data/app/views/carrier/messages/simple/_autocomplete_includes.html.erb +0 -7
  155. data/app/views/carrier/messages/simple/_recipients.html.erb +0 -3
  156. data/lib/carrier/configuration/ui.rb +0 -28
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem 'sugar-high'
7
7
  gem 'sweetloader'
8
8
 
9
9
  group :development, :test do
10
- gem 'rails', '>=3.1.0'
10
+ gem 'rails', '~>3.1'
11
11
  gem 'unicorn'
12
12
  gem 'mysql2'
13
13
  gem 'devise'
data/TODO ADDED
@@ -0,0 +1 @@
1
+ * Get rid of simple-rich styles. Leave only simple.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.1.0
@@ -0,0 +1,10 @@
1
+ // Chosen, a Select Box Enhancer for jQuery and Protoype
2
+ // by Patrick Filler for Harvest, http://getharvest.com
3
+ //
4
+ // Version 0.9.5
5
+ // Full source at https://github.com/harvesthq/chosen
6
+ // Copyright (c) 2011 Harvest http://getharvest.com
7
+
8
+ // MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
9
+ // This file is generated by `cake build`, do not edit it by hand.
10
+ (function(){var a;a=function(){function a(){this.options_index=0,this.parsed=[]}return a.prototype.add_node=function(a){return a.nodeName==="OPTGROUP"?this.add_group(a):this.add_option(a)},a.prototype.add_group=function(a){var b,c,d,e,f,g;b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:a.label,children:0,disabled:a.disabled}),f=a.childNodes,g=[];for(d=0,e=f.length;d<e;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},a.prototype.add_option=function(a,b,c){if(a.nodeName==="OPTION")return a.text!==""?(b!=null&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},a}(),a.select_to_array=function(b){var c,d,e,f,g;d=new a,g=b.childNodes;for(e=0,f=g.length;e<f;e++)c=g[e],d.add_node(c);return d.parsed},this.SelectParser=a}).call(this),function(){var a,b,c=function(a,b){return function(){return a.apply(b,arguments)}};b=this,a=function(){function a(a,b){this.form_field=a,this.options=b!=null?b:{},this.set_default_values(),this.is_multiple=this.form_field.multiple,this.default_text_default=this.is_multiple?"Select Some Options":"Select an Option",this.setup(),this.set_up_html(),this.register_observers(),this.finish_setup()}return a.prototype.set_default_values=function(){return this.click_test_action=c(function(a){return this.test_active_click(a)},this),this.activate_action=c(function(a){return this.activate_field(a)},this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.choices=0,this.results_none_found=this.options.no_results_text||"No results match"},a.prototype.mouse_enter=function(){return this.mouse_on_container=!0},a.prototype.mouse_leave=function(){return this.mouse_on_container=!1},a.prototype.input_focus=function(a){if(!this.active_field)return setTimeout(c(function(){return this.container_mousedown()},this),50)},a.prototype.input_blur=function(a){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(c(function(){return this.blur_test()},this),100)},a.prototype.result_add_option=function(a){var b,c;return a.disabled?"":(a.dom_id=this.container_id+"_o_"+a.array_index,b=a.selected&&this.is_multiple?[]:["active-result"],a.selected&&b.push("result-selected"),a.group_array_index!=null&&b.push("group-option"),a.classes!==""&&b.push(a.classes),c=a.style.cssText!==""?' style="'+a.style+'"':"",'<li id="'+a.dom_id+'" class="'+b.join(" ")+'"'+c+">"+a.html+"</li>")},a.prototype.results_update_field=function(){return this.result_clear_highlight(),this.result_single_selected=null,this.results_build()},a.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},a.prototype.results_search=function(a){return this.results_showing?this.winnow_results():this.results_show()},a.prototype.keyup_checker=function(a){var b,c;b=(c=a.which)!=null?c:a.keyCode,this.search_field_scale();switch(b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:a.preventDefault();if(this.results_showing)return this.result_select(a);break;case 27:if(this.results_showing)return this.results_hide();break;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},a.prototype.generate_field_id=function(){var a;return a=this.generate_random_id(),this.form_field.id=a,a},a.prototype.generate_random_char=function(){var a,b,c;return a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ",c=Math.floor(Math.random()*a.length),b=a.substring(c,c+1)},a}(),b.AbstractChosen=a}.call(this),function(){var a,b,c,d,e=Object.prototype.hasOwnProperty,f=function(a,b){function d(){this.constructor=a}for(var c in b)e.call(b,c)&&(a[c]=b[c]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g=function(a,b){return function(){return a.apply(b,arguments)}};d=this,a=jQuery,a.fn.extend({chosen:function(c){return!a.browser.msie||a.browser.version!=="6.0"&&a.browser.version!=="7.0"?a(this).each(function(d){if(!a(this).hasClass("chzn-done"))return new b(this,c)}):this}}),b=function(){function b(){b.__super__.constructor.apply(this,arguments)}return f(b,AbstractChosen),b.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.is_rtl=this.form_field_jq.hasClass("chzn-rtl")},b.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done")},b.prototype.set_up_html=function(){var b,d,e,f;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/(:|\.)/g,"_"):this.generate_field_id(),this.container_id+="_chzn",this.f_width=this.form_field_jq.outerWidth(),this.default_text=this.form_field_jq.data("placeholder")?this.form_field_jq.data("placeholder"):this.default_text_default,b=a("<div />",{id:this.container_id,"class":"chzn-container"+(this.is_rtl?" chzn-rtl":""),style:"width: "+this.f_width+"px;"}),this.is_multiple?b.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop" style="left:-9000px;"><ul class="chzn-results"></ul></div>'):b.html('<a href="javascript:void(0)" class="chzn-single"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop" style="left:-9000px;"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(b),this.container=a("#"+this.container_id),this.container.addClass("chzn-container-"+(this.is_multiple?"multi":"single")),this.dropdown=this.container.find("div.chzn-drop").first(),d=this.container.height(),e=this.f_width-c(this.dropdown),this.dropdown.css({width:e+"px",top:d+"px"}),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first(),f=e-c(this.search_container)-c(this.search_field),this.search_field.css({width:f+"px"})),this.results_build(),this.set_tab_index(),this.form_field_jq.trigger("liszt:ready",{chosen:this})},b.prototype.register_observers=function(){this.container.mousedown(g(function(a){return this.container_mousedown(a)},this)),this.container.mouseup(g(function(a){return this.container_mouseup(a)},this)),this.container.mouseenter(g(function(a){return this.mouse_enter(a)},this)),this.container.mouseleave(g(function(a){return this.mouse_leave(a)},this)),this.search_results.mouseup(g(function(a){return this.search_results_mouseup(a)},this)),this.search_results.mouseover(g(function(a){return this.search_results_mouseover(a)},this)),this.search_results.mouseout(g(function(a){return this.search_results_mouseout(a)},this)),this.form_field_jq.bind("liszt:updated",g(function(a){return this.results_update_field(a)},this)),this.search_field.blur(g(function(a){return this.input_blur(a)},this)),this.search_field.keyup(g(function(a){return this.keyup_checker(a)},this)),this.search_field.keydown(g(function(a){return this.keydown_checker(a)},this));if(this.is_multiple)return this.search_choices.click(g(function(a){return this.choices_click(a)},this)),this.search_field.focus(g(function(a){return this.input_focus(a)},this))},b.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled)return this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field();this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1;if(!this.is_multiple)return this.selected_item.bind("focus",this.activate_action)},b.prototype.container_mousedown=function(b){var c;if(!this.is_disabled)return c=b!=null?a(b.target).hasClass("search-choice-close"):!1,b&&b.type==="mousedown"&&b.stopPropagation(),!this.pending_destroy_click&&!c?(this.active_field?!this.is_multiple&&b&&(a(b.target)[0]===this.selected_item[0]||a(b.target).parents("a.chzn-single").length)&&(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(document).click(this.click_test_action),this.results_show()),this.activate_field()):this.pending_destroy_click=!1},b.prototype.container_mouseup=function(a){if(a.target.nodeName==="ABBR")return this.results_reset(a)},b.prototype.blur_test=function(a){if(!this.active_field&&this.container.hasClass("chzn-container-active"))return this.close_field()},b.prototype.close_field=function(){return a(document).unbind("click",this.click_test_action),this.is_multiple||(this.selected_item.attr("tabindex",this.search_field.attr("tabindex")),this.search_field.attr("tabindex",-1)),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.winnow_results_clear(),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},b.prototype.activate_field=function(){return!this.is_multiple&&!this.active_field&&(this.search_field.attr("tabindex",this.selected_item.attr("tabindex")),this.selected_item.attr("tabindex",-1)),this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},b.prototype.test_active_click=function(b){return a(b.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field()},b.prototype.results_build=function(){var a,b,c,e,f;this.parsing=!0,this.results_data=d.SelectParser.select_to_array(this.form_field),this.is_multiple&&this.choices>0?(this.search_choices.find("li.search-choice").remove(),this.choices=0):this.is_multiple||(this.selected_item.find("span").text(this.default_text),this.form_field.options.length>this.disable_search_threshold?this.container.removeClass("chzn-container-single-nosearch"):this.container.addClass("chzn-container-single-nosearch")),a="",f=this.results_data;for(c=0,e=f.length;c<e;c++)b=f[c],b.group?a+=this.result_add_group(b):b.empty||(a+=this.result_add_option(b),b.selected&&this.is_multiple?this.choice_build(b):b.selected&&!this.is_multiple&&(this.selected_item.find("span").text(b.text),this.allow_single_deselect&&this.single_deselect_control_build()));return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(a),this.parsing=!1},b.prototype.result_add_group=function(b){return b.disabled?"":(b.dom_id=this.container_id+"_g_"+b.array_index,'<li id="'+b.dom_id+'" class="group-result">'+a("<div />").text(b.label).html()+"</li>")},b.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight();if(b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(c<f)return this.search_results.scrollTop(c)}},b.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},b.prototype.results_show=function(){var a;return this.is_multiple||(this.selected_item.addClass("chzn-single-with-drop"),this.result_single_selected&&this.result_do_highlight(this.result_single_selected)),a=this.is_multiple?this.container.height():this.container.height()-1,this.dropdown.css({top:a+"px",left:0}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results()},b.prototype.results_hide=function(){return this.is_multiple||this.selected_item.removeClass("chzn-single-with-drop"),this.result_clear_highlight(),this.dropdown.css({left:"-9000px"}),this.results_showing=!1},b.prototype.set_tab_index=function(a){var b;if(this.form_field_jq.attr("tabindex"))return b=this.form_field_jq.attr("tabindex"),this.form_field_jq.attr("tabindex",-1),this.is_multiple?this.search_field.attr("tabindex",b):(this.selected_item.attr("tabindex",b),this.search_field.attr("tabindex",-1))},b.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},b.prototype.search_results_mouseup=function(b){var c;c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first();if(c.length)return this.result_highlight=c,this.result_select(b)},b.prototype.search_results_mouseover=function(b){var c;c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first();if(c)return this.result_do_highlight(c)},b.prototype.search_results_mouseout=function(b){if(a(b.target).hasClass("active-result"))return this.result_clear_highlight()},b.prototype.choices_click=function(b){b.preventDefault();if(this.active_field&&!a(b.target).hasClass("search-choice")&&!this.results_showing)return this.results_show()},b.prototype.choice_build=function(b){var c,d;return c=this.container_id+"_c_"+b.array_index,this.choices+=1,this.search_container.before('<li class="search-choice" id="'+c+'"><span>'+b.html+'</span><a href="javascript:void(0)" class="search-choice-close" rel="'+b.array_index+'"></a></li>'),d=a("#"+c).find("a").first(),d.click(g(function(a){return this.choice_destroy_link_click(a)},this))},b.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),this.is_disabled?b.stopPropagation:(this.pending_destroy_click=!0,this.choice_destroy(a(b.target)))},b.prototype.choice_destroy=function(a){return this.choices-=1,this.show_search_field_default(),this.is_multiple&&this.choices>0&&this.search_field.val().length<1&&this.results_hide(),this.result_deselect(a.attr("rel")),a.parents("li").first().remove()},b.prototype.results_reset=function(b){this.form_field.options[0].selected=!0,this.selected_item.find("span").text(this.default_text),this.show_search_field_default(),a(b.target).remove(),this.form_field_jq.trigger("change");if(this.active_field)return this.results_hide()},b.prototype.result_select=function(a){var b,c,d,e;if(this.result_highlight)return b=this.result_highlight,c=b.attr("id"),this.result_clear_highlight(),this.is_multiple?this.result_deactivate(b):(this.search_results.find(".result-selected").removeClass("result-selected"),this.result_single_selected=b),b.addClass("result-selected"),e=c.substr(c.lastIndexOf("_")+1),d=this.results_data[e],d.selected=!0,this.form_field.options[d.options_index].selected=!0,this.is_multiple?this.choice_build(d):(this.selected_item.find("span").first().text(d.text),this.allow_single_deselect&&this.single_deselect_control_build()),(!a.metaKey||!this.is_multiple)&&this.results_hide(),this.search_field.val(""),this.form_field_jq.trigger("change"),this.search_field_scale()},b.prototype.result_activate=function(a){return a.addClass("active-result")},b.prototype.result_deactivate=function(a){return a.removeClass("active-result")},b.prototype.result_deselect=function(b){var c,d;return d=this.results_data[b],d.selected=!1,this.form_field.options[d.options_index].selected=!1,c=a("#"+this.container_id+"_o_"+b),c.removeClass("result-selected").addClass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change"),this.search_field_scale()},b.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1)return this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>')},b.prototype.winnow_results=function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;this.no_results_clear(),i=0,j=this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html(),f=new RegExp("^"+j.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),m=new RegExp(j.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),r=this.results_data;for(n=0,p=r.length;n<p;n++){c=r[n];if(!c.disabled&&!c.empty)if(c.group)a("#"+c.dom_id).css("display","none");else if(!this.is_multiple||!c.selected){b=!1,h=c.dom_id,g=a("#"+h);if(f.test(c.html))b=!0,i+=1;else if(c.html.indexOf(" ")>=0||c.html.indexOf("[")===0){e=c.html.replace(/\[|\]/g,"").split(" ");if(e.length)for(o=0,q=e.length;o<q;o++)d=e[o],f.test(d)&&(b=!0,i+=1)}b?(j.length?(k=c.html.search(m),l=c.html.substr(0,k+j.length)+"</em>"+c.html.substr(k+j.length),l=l.substr(0,k)+"<em>"+l.substr(k)):l=c.html,g.html(l),this.result_activate(g),c.group_array_index!=null&&a("#"+this.results_data[c.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&h===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(g))}}return i<1&&j.length?this.no_results(j):this.winnow_results_set_highlight()},b.prototype.winnow_results_clear=function(){var b,c,d,e,f;this.search_field.val(""),c=this.search_results.find("li"),f=[];for(d=0,e=c.length;d<e;d++)b=c[d],b=a(b),f.push(b.hasClass("group-result")?b.css("display","auto"):!this.is_multiple||!b.hasClass("result-selected")?this.result_activate(b):void 0);return f},b.prototype.winnow_results_set_highlight=function(){var a,b;if(!this.result_highlight){b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first();if(a!=null)return this.result_do_highlight(a)}},b.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c)},b.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},b.prototype.keydown_arrow=function(){var b,c;this.result_highlight?this.results_showing&&(c=this.result_highlight.nextAll("li.active-result").first(),c&&this.result_do_highlight(c)):(b=this.search_results.find("li.active-result").first(),b&&this.result_do_highlight(a(b)));if(!this.results_showing)return this.results_show()},b.prototype.keyup_arrow=function(){var a;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices>0&&this.results_hide(),this.result_clear_highlight())},b.prototype.keydown_backstroke=function(){return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(this.pending_backstroke=this.search_container.siblings("li.search-choice").last(),this.pending_backstroke.addClass("search-choice-focus"))},b.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},b.prototype.keydown_checker=function(a){var b,c;b=(c=a.which)!=null?c:a.keyCode,this.search_field_scale(),b!==8&&this.pending_backstroke&&this.clear_backstroke();switch(b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:this.keydown_arrow()}},b.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(i=0,j=g.length;i<j;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return c=a("<div />",{style:f}),c.text(this.search_field.val()),a("body").append(c),h=c.width()+25,c.remove(),h>this.f_width-10&&(h=this.f_width-10),this.search_field.css({width:h+"px"}),b=this.container.height(),this.dropdown.css({top:b+"px"})}},b.prototype.generate_random_id=function(){var b;b="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while(a("#"+b).length>0)b+=this.generate_random_char();return b},b}(),c=function(a){var b;return b=a.outerWidth()-a.width()},d.get_side_border_padding=c}.call(this)
@@ -0,0 +1,5 @@
1
+ //= require 'carrier/chosen.jquery.min'
2
+
3
+ $(function() {
4
+ $('.chosen').chosen()
5
+ })
@@ -107,6 +107,12 @@ a, a:link, a:visited {text-decoration:none;}
107
107
 
108
108
  .carrier_messagelist {clear:both; margin-top:10px;}
109
109
 
110
+ .no_messages {
111
+ font-size: 18px;
112
+ width: 200px;
113
+ margin: 0 auto;
114
+ padding: 40px;
115
+ }
110
116
  .message_ma_wrapper {
111
117
  padding:12px;
112
118
  display:block;
@@ -181,23 +187,58 @@ span.ma_has_new { font-weight:bold;}
181
187
  -moz-border-radius: 6px;
182
188
  -webkit-border-radius: 6px;
183
189
  }
184
- .message_ma_archive_chain a:link, .message_ma_archive_chain a:visited{
190
+ .message_ma_archive_chain a:link, .message_ma_archive_chain a:visited {
185
191
  color:#fff;
186
192
  background-color:#333;
187
193
  }
194
+
188
195
  .message_ma_archive_chain a:hover {
189
196
  color:#000;
190
197
  background-color:#ccc;
191
198
  }
192
199
 
193
200
  .message_ma_new_wrapper {}
201
+
202
+ .message_ma_new_wrapper .message_ma_new_wrapper_1 select.chosen {
203
+ width: 613px;
204
+ }
205
+
206
+ .message_ma_new_wrapper .message_ma_new_wrapper_1 .chzn-container .chzn-choices {
207
+ border:1px solid #ccc;
208
+ border-radius: 6px;
209
+ -moz-border-radius: 6px;
210
+ -webkit-border-radius: 6px;
211
+ }
212
+
213
+ .message_ma_new_wrapper .message_ma_new_wrapper_1 .chzn-container a {
214
+ padding: 0;
215
+ }
216
+
194
217
  .message_ma_new_wrapper .message_ma_new_wrapper_2 input[type="text"],
195
- .message_ma_new_wrapper .message_ma_new_wrapper_2 textarea {width:95%;}
218
+ .message_ma_new_wrapper .message_ma_new_wrapper_2 textarea {width:600px;}
196
219
 
197
220
  .message_ma_new_wrapper .message_ma_new_wrapper_2 .actions {
198
221
  margin:12px 0;
199
222
  }
200
223
 
224
+ .red {color:Red;}
225
+ .carrier_wrapper * a:link, .carrier_wrapper * a:visited {}
226
+
227
+ .message_ma_new_wrapper_1 {width:90%;}
228
+ .message_ma_new_wrapper_2 {width:90%;}
229
+
230
+ .message_ma_new_wrapper input[type="text"],
231
+ .message_ma_new_wrapper textarea {width:600px;}
232
+
233
+ .message_ma_new_wrapper input[type="text"],
234
+ .message_ma_new_wrapper textarea {
235
+ border:1px solid #ccc;
236
+ border-radius: 6px;
237
+ -moz-border-radius: 6px;
238
+ -webkit-border-radius: 6px;
239
+ padding:6px;
240
+ }
241
+
201
242
  label {
202
243
  font-family: Georgia;
203
244
  font-size: 14px;
@@ -221,7 +262,4 @@ label {
221
262
 
222
263
 
223
264
 
224
- /* colors */
225
265
 
226
- .red {color:Red;}
227
- .carrier_wrapper * a:link, .carrier_wrapper * a:visited {}
@@ -0,0 +1,367 @@
1
+ /* @group Base */
2
+ .chzn-container {
3
+ font-size: 13px;
4
+ position: relative;
5
+ display: inline-block;
6
+ zoom: 1;
7
+ *display: inline;
8
+ }
9
+ .chzn-container .chzn-drop {
10
+ background: #fff;
11
+ border: 1px solid #aaa;
12
+ border-top: 0;
13
+ position: absolute;
14
+ top: 29px;
15
+ left: 0;
16
+ -webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
17
+ -moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
18
+ -o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
19
+ box-shadow : 0 4px 5px rgba(0,0,0,.15);
20
+ z-index: 999;
21
+ }
22
+ /* @end */
23
+
24
+ /* @group Single Chosen */
25
+ .chzn-container-single .chzn-single {
26
+ background-color: #fff;
27
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
28
+ background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
29
+ background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
30
+ background-image: -o-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
31
+ background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 50%);
32
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
33
+ background-image: linear-gradient(top, #eeeeee 0%,#ffffff 50%);
34
+ -webkit-border-radius: 4px;
35
+ -moz-border-radius : 4px;
36
+ border-radius : 4px;
37
+ -moz-background-clip : padding;
38
+ -webkit-background-clip: padding-box;
39
+ background-clip : padding-box;
40
+ border: 1px solid #aaa;
41
+ display: block;
42
+ overflow: hidden;
43
+ white-space: nowrap;
44
+ position: relative;
45
+ height: 26px;
46
+ line-height: 26px;
47
+ padding: 0 0 0 8px;
48
+ color: #444;
49
+ text-decoration: none;
50
+ }
51
+ .chzn-container-single .chzn-single span {
52
+ margin-right: 26px;
53
+ display: block;
54
+ overflow: hidden;
55
+ white-space: nowrap;
56
+ -o-text-overflow: ellipsis;
57
+ -ms-text-overflow: ellipsis;
58
+ text-overflow: ellipsis;
59
+ }
60
+ .chzn-container-single .chzn-single abbr {
61
+ display: block;
62
+ position: absolute;
63
+ right: 26px;
64
+ top: 8px;
65
+ width: 12px;
66
+ height: 13px;
67
+ font-size: 1px;
68
+ background: url(carrier/chosen-sprite.png) right top no-repeat;
69
+ }
70
+ .chzn-container-single .chzn-single abbr:hover {
71
+ background-position: right -11px;
72
+ }
73
+ .chzn-container-single .chzn-single div {
74
+ -webkit-border-radius: 0 4px 4px 0;
75
+ -moz-border-radius : 0 4px 4px 0;
76
+ border-radius : 0 4px 4px 0;
77
+ -moz-background-clip : padding;
78
+ -webkit-background-clip: padding-box;
79
+ background-clip : padding-box;
80
+ background: #ccc;
81
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
82
+ background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
83
+ background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
84
+ background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
85
+ background-image: -ms-linear-gradient(top, #cccccc 0%,#eeeeee 60%);
86
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#eeeeee',GradientType=0 );
87
+ background-image: linear-gradient(top, #cccccc 0%,#eeeeee 60%);
88
+ border-left: 1px solid #aaa;
89
+ position: absolute;
90
+ right: 0;
91
+ top: 0;
92
+ display: block;
93
+ height: 100%;
94
+ width: 18px;
95
+ }
96
+ .chzn-container-single .chzn-single div b {
97
+ background: url('chosen-sprite.png') no-repeat 0 1px;
98
+ display: block;
99
+ width: 100%;
100
+ height: 100%;
101
+ }
102
+ .chzn-container-single .chzn-search {
103
+ padding: 3px 4px;
104
+ position: relative;
105
+ margin: 0;
106
+ white-space: nowrap;
107
+ z-index: 1010;
108
+ }
109
+ .chzn-container-single .chzn-search input {
110
+ background: #fff url('chosen-sprite.png') no-repeat 100% -22px;
111
+ background: url('chosen-sprite.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
112
+ background: url('chosen-sprite.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
113
+ background: url('chosen-sprite.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
114
+ background: url('chosen-sprite.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
115
+ background: url('chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%);
116
+ background: url('chosen-sprite.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%,#eeeeee 99%);
117
+ margin: 1px 0;
118
+ padding: 4px 20px 4px 5px;
119
+ outline: 0;
120
+ border: 1px solid #aaa;
121
+ font-family: sans-serif;
122
+ font-size: 1em;
123
+ }
124
+ .chzn-container-single .chzn-drop {
125
+ -webkit-border-radius: 0 0 4px 4px;
126
+ -moz-border-radius : 0 0 4px 4px;
127
+ border-radius : 0 0 4px 4px;
128
+ -moz-background-clip : padding;
129
+ -webkit-background-clip: padding-box;
130
+ background-clip : padding-box;
131
+ }
132
+ /* @end */
133
+
134
+ .chzn-container-single-nosearch .chzn-search input {
135
+ position: absolute;
136
+ left: -9000px;
137
+ }
138
+
139
+ /* @group Multi Chosen */
140
+ .chzn-container-multi .chzn-choices {
141
+ background-color: #fff;
142
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
143
+ background-image: -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
144
+ background-image: -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
145
+ background-image: -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
146
+ background-image: -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%);
147
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
148
+ background-image: linear-gradient(top, #ffffff 85%,#eeeeee 99%);
149
+ border: 1px solid #aaa;
150
+ margin: 0;
151
+ padding: 0;
152
+ cursor: text;
153
+ overflow: hidden;
154
+ height: auto !important;
155
+ height: 1%;
156
+ position: relative;
157
+ }
158
+ .chzn-container-multi .chzn-choices li {
159
+ float: left;
160
+ list-style: none;
161
+ }
162
+ .chzn-container-multi .chzn-choices .search-field {
163
+ white-space: nowrap;
164
+ margin: 0;
165
+ padding: 0;
166
+ }
167
+ .chzn-container-multi .chzn-choices .search-field input {
168
+ color: #666;
169
+ background: transparent !important;
170
+ border: 0 !important;
171
+ padding: 5px;
172
+ margin: 1px 0;
173
+ outline: 0;
174
+ -webkit-box-shadow: none;
175
+ -moz-box-shadow : none;
176
+ -o-box-shadow : none;
177
+ box-shadow : none;
178
+ }
179
+ .chzn-container-multi .chzn-choices .search-field .default {
180
+ color: #999;
181
+ }
182
+ .chzn-container-multi .chzn-choices .search-choice {
183
+ -webkit-border-radius: 3px;
184
+ -moz-border-radius : 3px;
185
+ border-radius : 3px;
186
+ -moz-background-clip : padding;
187
+ -webkit-background-clip: padding-box;
188
+ background-clip : padding-box;
189
+ background-color: #e4e4e4;
190
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e4e4e4), color-stop(0.7, #eeeeee));
191
+ background-image: -webkit-linear-gradient(center bottom, #e4e4e4 0%, #eeeeee 70%);
192
+ background-image: -moz-linear-gradient(center bottom, #e4e4e4 0%, #eeeeee 70%);
193
+ background-image: -o-linear-gradient(bottom, #e4e4e4 0%, #eeeeee 70%);
194
+ background-image: -ms-linear-gradient(top, #e4e4e4 0%,#eeeeee 70%);
195
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e4e4e4', endColorstr='#eeeeee',GradientType=0 );
196
+ background-image: linear-gradient(top, #e4e4e4 0%,#eeeeee 70%);
197
+ color: #333;
198
+ border: 1px solid #b4b4b4;
199
+ line-height: 13px;
200
+ padding: 3px 19px 3px 6px;
201
+ margin: 3px 0 3px 5px;
202
+ position: relative;
203
+ }
204
+ .chzn-container-multi .chzn-choices .search-choice span {
205
+ cursor: default;
206
+ }
207
+ .chzn-container-multi .chzn-choices .search-choice-focus {
208
+ background: #d4d4d4;
209
+ }
210
+ .chzn-container-multi .chzn-choices .search-choice .search-choice-close {
211
+ display: block;
212
+ position: absolute;
213
+ right: 3px;
214
+ top: 4px;
215
+ width: 12px;
216
+ height: 13px;
217
+ font-size: 1px;
218
+ background: url(chosen-sprite.png) right top no-repeat;
219
+ }
220
+ .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
221
+ background-position: right -11px;
222
+ }
223
+ .chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
224
+ background-position: right -11px;
225
+ }
226
+ /* @end */
227
+
228
+ /* @group Results */
229
+ .chzn-container .chzn-results {
230
+ margin: 0 4px 4px 0;
231
+ max-height: 190px;
232
+ padding: 0 0 0 4px;
233
+ position: relative;
234
+ overflow-x: hidden;
235
+ overflow-y: auto;
236
+ }
237
+ .chzn-container-multi .chzn-results {
238
+ margin: -1px 0 0;
239
+ padding: 0;
240
+ }
241
+ .chzn-container .chzn-results li {
242
+ display: none;
243
+ line-height: 80%;
244
+ padding: 7px 7px 8px;
245
+ margin: 0;
246
+ list-style: none;
247
+ }
248
+ .chzn-container .chzn-results .active-result {
249
+ cursor: pointer;
250
+ display: list-item;
251
+ }
252
+ .chzn-container .chzn-results .highlighted {
253
+ background: #3875d7;
254
+ color: #fff;
255
+ }
256
+ .chzn-container .chzn-results li em {
257
+ background: #feffde;
258
+ font-style: normal;
259
+ }
260
+ .chzn-container .chzn-results .highlighted em {
261
+ background: transparent;
262
+ }
263
+ .chzn-container .chzn-results .no-results {
264
+ background: #f4f4f4;
265
+ display: list-item;
266
+ }
267
+ .chzn-container .chzn-results .group-result {
268
+ cursor: default;
269
+ color: #999;
270
+ font-weight: bold;
271
+ }
272
+ .chzn-container .chzn-results .group-option {
273
+ padding-left: 20px;
274
+ }
275
+ .chzn-container-multi .chzn-drop .result-selected {
276
+ display: none;
277
+ }
278
+ /* @end */
279
+
280
+ /* @group Active */
281
+ .chzn-container-active .chzn-single {
282
+ -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
283
+ -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
284
+ -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
285
+ box-shadow : 0 0 5px rgba(0,0,0,.3);
286
+ border: 1px solid #5897fb;
287
+ }
288
+ .chzn-container-active .chzn-single-with-drop {
289
+ border: 1px solid #aaa;
290
+ -webkit-box-shadow: 0 1px 0 #fff inset;
291
+ -moz-box-shadow : 0 1px 0 #fff inset;
292
+ -o-box-shadow : 0 1px 0 #fff inset;
293
+ box-shadow : 0 1px 0 #fff inset;
294
+ background-color: #eee;
295
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
296
+ background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
297
+ background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
298
+ background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
299
+ background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
300
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
301
+ background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
302
+ -webkit-border-bottom-left-radius : 0;
303
+ -webkit-border-bottom-right-radius: 0;
304
+ -moz-border-radius-bottomleft : 0;
305
+ -moz-border-radius-bottomright: 0;
306
+ border-bottom-left-radius : 0;
307
+ border-bottom-right-radius: 0;
308
+ }
309
+ .chzn-container-active .chzn-single-with-drop div {
310
+ background: transparent;
311
+ border-left: none;
312
+ }
313
+ .chzn-container-active .chzn-single-with-drop div b {
314
+ background-position: -18px 1px;
315
+ }
316
+ .chzn-container-active .chzn-choices {
317
+ -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
318
+ -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
319
+ -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
320
+ box-shadow : 0 0 5px rgba(0,0,0,.3);
321
+ border: 1px solid #5897fb;
322
+ }
323
+ .chzn-container-active .chzn-choices .search-field input {
324
+ color: #111 !important;
325
+ }
326
+ /* @end */
327
+
328
+ /* @group Disabled Support */
329
+ .chzn-disabled {
330
+ cursor: default;
331
+ opacity:0.5 !important;
332
+ }
333
+ .chzn-disabled .chzn-single {
334
+ cursor: default;
335
+ }
336
+ .chzn-disabled .chzn-choices .search-choice .search-choice-close {
337
+ cursor: default;
338
+ }
339
+
340
+ /* @group Right to Left */
341
+ .chzn-rtl { direction:rtl;text-align: right; }
342
+ .chzn-rtl .chzn-single { padding-left: 0; padding-right: 8px; }
343
+ .chzn-rtl .chzn-single span { margin-left: 26px; margin-right: 0; }
344
+ .chzn-rtl .chzn-single div {
345
+ left: 0; right: auto;
346
+ border-left: none; border-right: 1px solid #aaaaaa;
347
+ -webkit-border-radius: 4px 0 0 4px;
348
+ -moz-border-radius : 4px 0 0 4px;
349
+ border-radius : 4px 0 0 4px;
350
+ }
351
+ .chzn-rtl .chzn-choices li { float: right; }
352
+ .chzn-rtl .chzn-choices .search-choice { padding: 3px 6px 3px 19px; margin: 3px 5px 3px 0; }
353
+ .chzn-rtl .chzn-choices .search-choice .search-choice-close { left: 5px; right: auto; background-position: right top;}
354
+ .chzn-rtl.chzn-container-single .chzn-results { margin-left: 4px; margin-right: 0; padding-left: 0; padding-right: 4px; }
355
+ .chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 20px; }
356
+ .chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
357
+ .chzn-rtl .chzn-search input {
358
+ background: url('chosen-sprite.png') no-repeat -38px -22px, #ffffff;
359
+ background: url('chosen-sprite.png') no-repeat -38px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
360
+ background: url('chosen-sprite.png') no-repeat -38px -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
361
+ background: url('chosen-sprite.png') no-repeat -38px -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
362
+ background: url('chosen-sprite.png') no-repeat -38px -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
363
+ background: url('chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%);
364
+ background: url('chosen-sprite.png') no-repeat -38px -22px, linear-gradient(top, #ffffff 85%,#eeeeee 99%);
365
+ padding: 4px 5px 4px 20px;
366
+ }
367
+ /* @end */