mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Removed 'chosen' js package, added 'multiselect' and 'select' packages.
This commit is contained in:
@@ -45,12 +45,22 @@ if(e_PAGE != 'menus.php') // Quick fix for Menu Manager inactive drop-down probl
|
|||||||
e107::css('core', 'bootstrap-editable/css/bootstrap-editable.css', 'jquery');
|
e107::css('core', 'bootstrap-editable/css/bootstrap-editable.css', 'jquery');
|
||||||
e107::js('core', 'bootstrap-editable/js/bootstrap-editable.min.js', 'jquery', 2);
|
e107::js('core', 'bootstrap-editable/js/bootstrap-editable.min.js', 'jquery', 2);
|
||||||
|
|
||||||
|
e107::css('core', 'bootstrap-select/bootstrap-select.min.css', 'jquery');
|
||||||
|
e107::js('core', 'bootstrap-select/bootstrap-select.min.js', 'jquery', 2);
|
||||||
|
|
||||||
|
e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
|
||||||
|
e107::js('core', 'bootstrap-multiselect/js/bootstrap-multiselect.js', 'jquery', 2);
|
||||||
|
|
||||||
|
//e107::css('core', 'bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css', 'jquery');
|
||||||
|
//e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
|
||||||
|
|
||||||
e107::js('core', 'jquery.elastic.js', 'jquery', 2);
|
e107::js('core', 'jquery.elastic.js', 'jquery', 2);
|
||||||
|
|
||||||
e107::js('core', 'jquery-ui-timepicker-addon.js', 'jquery', 2);
|
e107::js('core', 'jquery-ui-timepicker-addon.js', 'jquery', 2);
|
||||||
|
|
||||||
|
|
||||||
e107::css('core', 'chosen/chosen.css', 'jquery');
|
//e107::css('core', 'chosen/chosen.css', 'jquery');
|
||||||
e107::js('core', 'chosen/chosen.jquery.min.js', 'jquery', 2);
|
//e107::js('core', 'chosen/chosen.jquery.min.js', 'jquery', 2);
|
||||||
|
|
||||||
e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2);
|
e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2);
|
||||||
|
|
||||||
|
@@ -432,7 +432,7 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
|||||||
<tr>
|
<tr>
|
||||||
<td style='vertical-align:top'>".LAN_MAILOUT_115."<br /></td>
|
<td style='vertical-align:top'>".LAN_MAILOUT_115."<br /></td>
|
||||||
<td>
|
<td>
|
||||||
<select class='tbox' name='mailer' onchange='disp(this.value)'>\n";
|
<select class='tbox e-select' name='mailer' onchange='disp(this.value)'>\n";
|
||||||
$mailers = array('php','smtp','sendmail');
|
$mailers = array('php','smtp','sendmail');
|
||||||
foreach($mailers as $opt)
|
foreach($mailers as $opt)
|
||||||
{
|
{
|
||||||
@@ -477,7 +477,7 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>".LAN_MAILOUT_90."</td><td>
|
<td>".LAN_MAILOUT_90."</td><td>
|
||||||
<select class='tbox' name='smtp_options'>\n
|
<select class='tbox e-select' name='smtp_options'>\n
|
||||||
<option value=''>".LAN_MAILOUT_96."</option>\n";
|
<option value=''>".LAN_MAILOUT_96."</option>\n";
|
||||||
$selected = (in_array('secure=SSL',$smtp_opts) ? " selected='selected'" : '');
|
$selected = (in_array('secure=SSL',$smtp_opts) ? " selected='selected'" : '');
|
||||||
$text .= "<option value='smtp_ssl'{$selected}>".LAN_MAILOUT_92."</option>\n";
|
$text .= "<option value='smtp_ssl'{$selected}>".LAN_MAILOUT_92."</option>\n";
|
||||||
|
@@ -623,9 +623,24 @@ class e_form
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// http://tarruda.github.com/bootstrap-datetimepicker/
|
||||||
|
//XXX Problem -doesn't support non-numerical date formats. eg. 2 February, 2013
|
||||||
|
/*
|
||||||
|
$text .= "
|
||||||
|
<div class='{$class} input-append date'>
|
||||||
|
<input data-format='{$dformat}' type='text' id='{$id}' value='{$value}' />
|
||||||
|
<span class='add-on'>
|
||||||
|
<i data-time-icon='icon-time' data-date-icon='icon-calendar'></i>
|
||||||
|
</span>
|
||||||
|
</div>";
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
$text .= "<input class='{$class}' type='text' size='{$size}' name='{$name}' id='{$id}' value='{$value}' data-date-format='{$dformat}' data-time-format='{$tformat}' data-date-ampm='{$ampm}' data-date-firstday='{$firstDay}' {$required} />";
|
$text .= "<input class='{$class}' type='text' size='{$size}' name='{$name}' id='{$id}' value='{$value}' data-date-format='{$dformat}' data-time-format='{$tformat}' data-date-ampm='{$ampm}' data-date-firstday='{$firstDay}' {$required} />";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// $text .= " ({$dformat}) ".$value;
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
|
||||||
|
|
||||||
@@ -1028,6 +1043,10 @@ class e_form
|
|||||||
if($options['multiple'])
|
if($options['multiple'])
|
||||||
{
|
{
|
||||||
$options['class'] .= ' e-multiselect';
|
$options['class'] .= ' e-multiselect';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$options['class'] .= ' e-select';
|
||||||
}
|
}
|
||||||
return "<select name='{$name}'".$this->get_attributes($options, $name).">";
|
return "<select name='{$name}'".$this->get_attributes($options, $name).">";
|
||||||
}
|
}
|
||||||
|
@@ -44,8 +44,8 @@ class e_jsmanager
|
|||||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"
|
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"
|
||||||
// "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js",
|
// "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js",
|
||||||
"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js",
|
"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js",
|
||||||
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js",
|
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js",
|
||||||
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/themes/base/jquery-ui.css",
|
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css",
|
||||||
// "http://code.jquery.com/jquery-1.8.3.js",
|
// "http://code.jquery.com/jquery-1.8.3.js",
|
||||||
// "http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css",
|
// "http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css",
|
||||||
// "http://code.jquery.com/ui/1.9.2/jquery-ui.js"
|
// "http://code.jquery.com/ui/1.9.2/jquery-ui.js"
|
||||||
|
@@ -438,7 +438,7 @@ class user_class
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Only return the select box if we've ended up with some options
|
// Only return the select box if we've ended up with some options
|
||||||
if ($text) $text = "\n<select class='tbox select' name='{$fieldname}' {$extra_js}>\n".$text."</select>\n";
|
if ($text) $text = "\n<select class='tbox select e-select' name='{$fieldname}' {$extra_js}>\n".$text."</select>\n";
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
0
e107_web/js/bootstrap-multiselect/css/bootstrap-multiselect.css
vendored
Normal file
0
e107_web/js/bootstrap-multiselect/css/bootstrap-multiselect.css
vendored
Normal file
215
e107_web/js/bootstrap-multiselect/js/bootstrap-multiselect.js
vendored
Normal file
215
e107_web/js/bootstrap-multiselect/js/bootstrap-multiselect.js
vendored
Normal file
@@ -0,0 +1,215 @@
|
|||||||
|
/**
|
||||||
|
* bootstrap-multiselect.js 1.0.0
|
||||||
|
* https://github.com/davidstutz/bootstrap-multiselect
|
||||||
|
*
|
||||||
|
* Copyright 2012 David Stutz
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
!function ($) {
|
||||||
|
|
||||||
|
"use strict"; // jshint ;_;
|
||||||
|
|
||||||
|
if(typeof ko != 'undefined' && ko.bindingHandlers && !ko.bindingHandlers.multiselect){
|
||||||
|
ko.bindingHandlers.multiselect = {
|
||||||
|
init: function (element) {
|
||||||
|
var ms = $(element).data('multiselect');
|
||||||
|
|
||||||
|
if(!ms)
|
||||||
|
throw new Error("Bootstrap-multiselect's multiselect() has to be called on element before applying the Knockout View model!");
|
||||||
|
|
||||||
|
var prev = ms.options.onChange;
|
||||||
|
|
||||||
|
ms.options.onChange = function(option, checked){
|
||||||
|
// We dont want to refresh the multiselect since it would delete / recreate all items
|
||||||
|
$(element).data('blockRefresh', true);
|
||||||
|
|
||||||
|
// Force the binding to be updated by triggering the change event on the select element
|
||||||
|
$(element).trigger('change');
|
||||||
|
|
||||||
|
// Call any defined change handler
|
||||||
|
return prev(option, checked);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
update: function (element) {
|
||||||
|
var blockRefresh = $(element).data('blockRefresh') || false;
|
||||||
|
if (!blockRefresh) { $(element).multiselect("refresh"); }
|
||||||
|
$.data(element, 'blockRefresh', false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function Multiselect(select, options) {
|
||||||
|
|
||||||
|
this.options = this.getOptions(options);
|
||||||
|
this.select = $(select);
|
||||||
|
this.container = $(this.options.buttonContainer)
|
||||||
|
.append('<button type="button" class="dropdown-toggle ' + this.options.buttonClass + '" data-toggle="dropdown">' + this.options.buttonText($('option:selected', select)) + '</button>')
|
||||||
|
.append('<ul class="dropdown-menu"></ul>');
|
||||||
|
|
||||||
|
// Set max height of dropdown menu to activate auto scrollbar.
|
||||||
|
if (this.options.maxHeight) {
|
||||||
|
$('ul', this.container).css({
|
||||||
|
'max-height': this.options.maxHeight + 'px',
|
||||||
|
'overflow-y': 'auto',
|
||||||
|
'overflow-x': 'hidden',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Manually add the multiple attribute, if its not already set.
|
||||||
|
if (!this.select.attr('multiple')) {
|
||||||
|
this.select.attr('multiple', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.buildDrowdown(select, this.options);
|
||||||
|
|
||||||
|
this.select
|
||||||
|
.hide()
|
||||||
|
.after(this.container);
|
||||||
|
};
|
||||||
|
|
||||||
|
Multiselect.prototype = {
|
||||||
|
buildDrowdown: function(select, options){
|
||||||
|
|
||||||
|
// Build the dropdown.
|
||||||
|
$('option', this.select).each($.proxy(function(index, element) {
|
||||||
|
if ($(element).is(':selected')) {
|
||||||
|
$(element).attr('selected', 'selected');
|
||||||
|
$(element).prop('selected', 'selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$('ul', this.container).append('<li><a href="javascript:void(0);" style="padding:0;"><label style="margin:0;padding:3px 20px 3px 20px;width:100%;height:100%;cursor:pointer;"><input style="margin-bottom:5px;" type="checkbox" value="' + $(element).val() + '" /> ' + $(element).text() + '</label</a></li>');
|
||||||
|
|
||||||
|
var selected = $(element).prop('selected') || false;
|
||||||
|
var checkbox = $('ul li input[value="' + $(element).val() + '"]', this.container);
|
||||||
|
|
||||||
|
checkbox.prop('checked', selected);
|
||||||
|
|
||||||
|
if (selected) {
|
||||||
|
checkbox.parents('li').addClass('active');
|
||||||
|
}
|
||||||
|
}, this));
|
||||||
|
|
||||||
|
// Bind the change event on the dropdown elements.
|
||||||
|
$('ul li input[type="checkbox"]', this.container).on('change', $.proxy(function(event) {
|
||||||
|
var checked = $(event.target).prop('checked') || false;
|
||||||
|
|
||||||
|
if (checked) {
|
||||||
|
$(event.target).parents('li').addClass('active');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(event.target).parents('li').removeClass('active');
|
||||||
|
}
|
||||||
|
|
||||||
|
var option = $('option[value="' + $(event.target).val() + '"]', this.select);
|
||||||
|
|
||||||
|
if (checked) {
|
||||||
|
option.attr('selected', 'selected');
|
||||||
|
option.prop('selected', 'selected');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
option.removeAttr('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
var options = $('option:selected', this.select);
|
||||||
|
$('button', this.container).html(this.options.buttonText(options));
|
||||||
|
|
||||||
|
this.options.onChange(option, checked);
|
||||||
|
}, this));
|
||||||
|
|
||||||
|
$('ul li a', this.container).on('click', function(event) {
|
||||||
|
event.stopPropagation();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
defaults: {
|
||||||
|
// Default text function will either print 'None selected' in case no option is selected,
|
||||||
|
// or a list of the selected options up to a length of 3 selected options.
|
||||||
|
// If more than 3 options are selected, the number of selected options is printed.
|
||||||
|
buttonText: function(options) {
|
||||||
|
if (options.length == 0) {
|
||||||
|
return 'None selected <b class="caret"></b>';
|
||||||
|
}
|
||||||
|
else if (options.length > 3) {
|
||||||
|
return options.length + ' selected <b class="caret"></b>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var selected = '';
|
||||||
|
options.each(function() {
|
||||||
|
selected += $(this).text() + ', ';
|
||||||
|
});
|
||||||
|
return selected.substr(0, selected.length -2) + ' <b class="caret"></b>';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// Is triggered on change of the selected options.
|
||||||
|
onChange: function() {
|
||||||
|
|
||||||
|
},
|
||||||
|
buttonClass: 'btn',
|
||||||
|
buttonWidth: 'auto',
|
||||||
|
buttonContainer: '<div class="btn-group" />',
|
||||||
|
// Maximum height of thet dropdown menu.
|
||||||
|
// If maximum height is exceeded a scrollbar will be displayed.
|
||||||
|
maxHeight: 400,
|
||||||
|
},
|
||||||
|
|
||||||
|
constructor: Multiselect,
|
||||||
|
|
||||||
|
// Destroy - unbind - the plugin.
|
||||||
|
destroy: function() {
|
||||||
|
this.container.remove();
|
||||||
|
this.select.show();
|
||||||
|
},
|
||||||
|
|
||||||
|
// Refreshs the checked options based on the current state of the select.
|
||||||
|
refresh: function() {
|
||||||
|
$('option', this.select).each($.proxy(function(index, element) {
|
||||||
|
if ($(element).is(':selected')) {
|
||||||
|
$('ul li input[value="' + $(element).val() + '"]', this.container).prop('checked', true);
|
||||||
|
$('ul li input[value="' + $(element).val() + '"]', this.container).parents('li').addClass('active');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('ul li input[value="' + $(element).val() + '"]', this.container).prop('checked', false);
|
||||||
|
$('ul li input[value="' + $(element).val() + '"]', this.container).parents('li').removeClass('active');
|
||||||
|
}
|
||||||
|
}, this));
|
||||||
|
|
||||||
|
$('button', this.container).html(this.options.buttonText($('option:selected', this.select)));
|
||||||
|
},
|
||||||
|
|
||||||
|
rebuild: function() {
|
||||||
|
$('ul', this.container).html('');
|
||||||
|
this.buildDrowdown(this.select, this.options);
|
||||||
|
},
|
||||||
|
|
||||||
|
// Get options by merging defaults and given options.
|
||||||
|
getOptions: function(options) {
|
||||||
|
return $.extend({}, this.defaults, options);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.multiselect = function (option) {
|
||||||
|
return this.each(function () {
|
||||||
|
var data = $(this).data('multiselect'),
|
||||||
|
options = typeof option == 'object' && option;
|
||||||
|
|
||||||
|
if (!data) {
|
||||||
|
$(this).data('multiselect', (data = new Multiselect(this, options)));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof option == 'string') {
|
||||||
|
data[option]();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}(window.jQuery);
|
1
e107_web/js/bootstrap-select/bootstrap-select.min.css
vendored
Normal file
1
e107_web/js/bootstrap-select/bootstrap-select.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.bootstrap-select.btn-group,.bootstrap-select.btn-group[class*="span"]{float:none;display:inline-block;margin-bottom:10px;margin-left:0}.bootstrap-select{width:220px}.bootstrap-select .btn{width:220px}.bootstrap-select .btn:focus{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.btn-group .btn .filter-option{overflow:hidden;position:absolute;left:12px;right:25px;text-align:left}.bootstrap-select.btn-group .btn .caret{position:absolute;right:12px}.bootstrap-select.btn-group .disabled,.bootstrap-select.btn-group .dropdown-menu li.disabled>a{cursor:not-allowed}.bootstrap-select.btn-group[class*="span"] .btn{width:100%}.bootstrap-select.btn-group .dropdown-menu{min-width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.bootstrap-select.btn-group .dropdown-menu dt{display:block;padding:3px 20px;cursor:default}.bootstrap-select.btn-group .dropdown-menu li>a.opt{padding-left:35px}.bootstrap-select.btn-group .dropdown-menu .optgroup-div{border-top:1px solid #e5e5e5}.bootstrap-select.btn-group .dropdown-menu li>a{cursor:pointer}
|
1
e107_web/js/bootstrap-select/bootstrap-select.min.js
vendored
Normal file
1
e107_web/js/bootstrap-select/bootstrap-select.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 559 B |
@@ -1,396 +0,0 @@
|
|||||||
/* @group Base */
|
|
||||||
.chzn-container {
|
|
||||||
font-size: 13px;
|
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
zoom: 1;
|
|
||||||
*display: inline;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-drop {
|
|
||||||
background: #fff;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
border-top: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 29px;
|
|
||||||
left: 0;
|
|
||||||
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
|
|
||||||
-moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
|
||||||
-o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
|
||||||
box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
|
||||||
z-index: 1010;
|
|
||||||
}
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/* @group Single Chosen */
|
|
||||||
.chzn-container-single .chzn-single {
|
|
||||||
background-color: #ffffff;
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0 );
|
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
|
|
||||||
background-image: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
|
||||||
background-image: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
|
||||||
background-image: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
|
||||||
background-image: -ms-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
|
||||||
background-image: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
|
||||||
-webkit-border-radius: 5px;
|
|
||||||
-moz-border-radius : 5px;
|
|
||||||
border-radius : 5px;
|
|
||||||
-moz-background-clip : padding;
|
|
||||||
-webkit-background-clip: padding-box;
|
|
||||||
background-clip : padding-box;
|
|
||||||
border: 1px solid #aaaaaa;
|
|
||||||
-webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
|
|
||||||
-moz-box-shadow : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
|
|
||||||
box-shadow : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
position: relative;
|
|
||||||
height: 23px;
|
|
||||||
line-height: 24px;
|
|
||||||
padding: 0 0 0 8px;
|
|
||||||
color: #444444;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-default {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-single span {
|
|
||||||
margin-right: 26px;
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
-o-text-overflow: ellipsis;
|
|
||||||
-ms-text-overflow: ellipsis;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-single abbr {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
right: 26px;
|
|
||||||
top: 6px;
|
|
||||||
width: 12px;
|
|
||||||
height: 13px;
|
|
||||||
font-size: 1px;
|
|
||||||
background: url('chosen-sprite.png') right top no-repeat;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-single abbr:hover {
|
|
||||||
background-position: right -11px;
|
|
||||||
}
|
|
||||||
.chzn-container-single.chzn-disabled .chzn-single abbr:hover {
|
|
||||||
background-position: right top;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-single div {
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
display: block;
|
|
||||||
height: 100%;
|
|
||||||
width: 18px;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-single div b {
|
|
||||||
background: url('chosen-sprite.png') no-repeat 0 0;
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-search {
|
|
||||||
padding: 3px 4px;
|
|
||||||
position: relative;
|
|
||||||
margin: 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
z-index: 1010;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-search input {
|
|
||||||
background: #fff url('chosen-sprite.png') no-repeat 100% -22px;
|
|
||||||
background: url('chosen-sprite.png') no-repeat 100% -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
|
||||||
background: url('chosen-sprite.png') no-repeat 100% -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat 100% -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat 100% -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat 100% -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
margin: 1px 0;
|
|
||||||
padding: 4px 20px 4px 5px;
|
|
||||||
outline: 0;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
.chzn-container-single .chzn-drop {
|
|
||||||
-webkit-border-radius: 0 0 4px 4px;
|
|
||||||
-moz-border-radius : 0 0 4px 4px;
|
|
||||||
border-radius : 0 0 4px 4px;
|
|
||||||
-moz-background-clip : padding;
|
|
||||||
-webkit-background-clip: padding-box;
|
|
||||||
background-clip : padding-box;
|
|
||||||
}
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
.chzn-container-single-nosearch .chzn-search input {
|
|
||||||
position: absolute;
|
|
||||||
left: -9000px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @group Multi Chosen */
|
|
||||||
.chzn-container-multi .chzn-choices {
|
|
||||||
background-color: #fff;
|
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
|
||||||
background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
cursor: text;
|
|
||||||
overflow: hidden;
|
|
||||||
height: auto !important;
|
|
||||||
height: 1%;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices li {
|
|
||||||
float: left;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-field {
|
|
||||||
white-space: nowrap;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-field input {
|
|
||||||
color: #666;
|
|
||||||
background: transparent !important;
|
|
||||||
border: 0 !important;
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 100%;
|
|
||||||
height: 15px;
|
|
||||||
padding: 5px;
|
|
||||||
margin: 1px 0;
|
|
||||||
outline: 0;
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
-moz-box-shadow : none;
|
|
||||||
-o-box-shadow : none;
|
|
||||||
box-shadow : none;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-field .default {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-choice {
|
|
||||||
-webkit-border-radius: 3px;
|
|
||||||
-moz-border-radius : 3px;
|
|
||||||
border-radius : 3px;
|
|
||||||
-moz-background-clip : padding;
|
|
||||||
-webkit-background-clip: padding-box;
|
|
||||||
background-clip : padding-box;
|
|
||||||
background-color: #e4e4e4;
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
|
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
|
||||||
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
|
||||||
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
|
||||||
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
|
||||||
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
|
||||||
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
|
||||||
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
|
||||||
-moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
|
||||||
box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
|
||||||
color: #333;
|
|
||||||
border: 1px solid #aaaaaa;
|
|
||||||
line-height: 13px;
|
|
||||||
padding: 3px 20px 3px 5px;
|
|
||||||
margin: 3px 0 3px 5px;
|
|
||||||
position: relative;
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-choice-focus {
|
|
||||||
background: #d4d4d4;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-choice .search-choice-close {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
right: 3px;
|
|
||||||
top: 4px;
|
|
||||||
width: 12px;
|
|
||||||
height: 13px;
|
|
||||||
font-size: 1px;
|
|
||||||
background: url('chosen-sprite.png') right top no-repeat;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
|
|
||||||
background-position: right -11px;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
|
|
||||||
background-position: right -11px;
|
|
||||||
}
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/* @group Results */
|
|
||||||
.chzn-container .chzn-results {
|
|
||||||
margin: 0 4px 4px 0;
|
|
||||||
max-height: 240px;
|
|
||||||
padding: 0 0 0 4px;
|
|
||||||
position: relative;
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-results {
|
|
||||||
margin: -1px 0 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results li {
|
|
||||||
display: none;
|
|
||||||
line-height: 15px;
|
|
||||||
padding: 5px 6px;
|
|
||||||
margin: 0;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results .active-result {
|
|
||||||
cursor: pointer;
|
|
||||||
display: list-item;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results .highlighted {
|
|
||||||
background-color: #3875d7;
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );
|
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
|
||||||
background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
|
||||||
background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
|
||||||
background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
|
||||||
background-image: -ms-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
|
||||||
background-image: linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results li em {
|
|
||||||
background: #feffde;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results .highlighted em {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results .no-results {
|
|
||||||
background: #f4f4f4;
|
|
||||||
display: list-item;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results .group-result {
|
|
||||||
cursor: default;
|
|
||||||
color: #999;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results .group-option {
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
.chzn-container-multi .chzn-drop .result-selected {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results-scroll {
|
|
||||||
background: white;
|
|
||||||
margin: 0 4px;
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
width: 321px; /* This should by dynamic with js */
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results-scroll span {
|
|
||||||
display: inline-block;
|
|
||||||
height: 17px;
|
|
||||||
text-indent: -5000px;
|
|
||||||
width: 9px;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results-scroll-down {
|
|
||||||
bottom: 0;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results-scroll-down span {
|
|
||||||
background: url('chosen-sprite.png') no-repeat -4px -3px;
|
|
||||||
}
|
|
||||||
.chzn-container .chzn-results-scroll-up span {
|
|
||||||
background: url('chosen-sprite.png') no-repeat -22px -3px;
|
|
||||||
}
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/* @group Active */
|
|
||||||
.chzn-container-active .chzn-single {
|
|
||||||
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
border: 1px solid #5897fb;
|
|
||||||
}
|
|
||||||
.chzn-container-active .chzn-single-with-drop {
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
-webkit-box-shadow: 0 1px 0 #fff inset;
|
|
||||||
-moz-box-shadow : 0 1px 0 #fff inset;
|
|
||||||
-o-box-shadow : 0 1px 0 #fff inset;
|
|
||||||
box-shadow : 0 1px 0 #fff inset;
|
|
||||||
background-color: #eee;
|
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
|
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
|
|
||||||
background-image: -webkit-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
|
||||||
background-image: -moz-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
|
||||||
background-image: -o-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
|
||||||
background-image: -ms-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
|
||||||
background-image: linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
|
||||||
-webkit-border-bottom-left-radius : 0;
|
|
||||||
-webkit-border-bottom-right-radius: 0;
|
|
||||||
-moz-border-radius-bottomleft : 0;
|
|
||||||
-moz-border-radius-bottomright: 0;
|
|
||||||
border-bottom-left-radius : 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
|
||||||
.chzn-container-active .chzn-single-with-drop div {
|
|
||||||
background: transparent;
|
|
||||||
border-left: none;
|
|
||||||
}
|
|
||||||
.chzn-container-active .chzn-single-with-drop div b {
|
|
||||||
background-position: -18px 1px;
|
|
||||||
}
|
|
||||||
.chzn-container-active .chzn-choices {
|
|
||||||
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
border: 1px solid #5897fb;
|
|
||||||
}
|
|
||||||
.chzn-container-active .chzn-choices .search-field input {
|
|
||||||
color: #111 !important;
|
|
||||||
}
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/* @group Disabled Support */
|
|
||||||
.chzn-disabled {
|
|
||||||
cursor: default;
|
|
||||||
opacity:0.5 !important;
|
|
||||||
}
|
|
||||||
.chzn-disabled .chzn-single {
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
.chzn-disabled .chzn-choices .search-choice .search-choice-close {
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @group Right to Left */
|
|
||||||
.chzn-rtl { text-align: right; }
|
|
||||||
.chzn-rtl .chzn-single { padding: 0 8px 0 0; overflow: visible; }
|
|
||||||
.chzn-rtl .chzn-single span { margin-left: 26px; margin-right: 0; direction: rtl; }
|
|
||||||
|
|
||||||
.chzn-rtl .chzn-single div { left: 3px; right: auto; }
|
|
||||||
.chzn-rtl .chzn-single abbr {
|
|
||||||
left: 26px;
|
|
||||||
right: auto;
|
|
||||||
}
|
|
||||||
.chzn-rtl .chzn-choices .search-field input { direction: rtl; }
|
|
||||||
.chzn-rtl .chzn-choices li { float: right; }
|
|
||||||
.chzn-rtl .chzn-choices .search-choice { padding: 3px 5px 3px 19px; margin: 3px 5px 3px 0; }
|
|
||||||
.chzn-rtl .chzn-choices .search-choice .search-choice-close { left: 4px; right: auto; background-position: right top;}
|
|
||||||
.chzn-rtl.chzn-container-single .chzn-results { margin: 0 0 4px 4px; padding: 0 4px 0 0; }
|
|
||||||
.chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
|
|
||||||
.chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
|
|
||||||
.chzn-rtl .chzn-search input {
|
|
||||||
background: #fff url('chosen-sprite.png') no-repeat -38px -22px;
|
|
||||||
background: url('chosen-sprite.png') no-repeat -38px -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
|
||||||
background: url('chosen-sprite.png') no-repeat -38px -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat -38px -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat -38px -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
background: url('chosen-sprite.png') no-repeat -38px -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
|
||||||
padding: 4px 5px 4px 20px;
|
|
||||||
direction: rtl;
|
|
||||||
}
|
|
||||||
/* @end */
|
|
10
e107_web/js/chosen/chosen.jquery.min.js
vendored
10
e107_web/js/chosen/chosen.jquery.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -49,6 +49,10 @@ $(document).ready(function()
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$(".e-multiselect").multiselect();
|
||||||
|
|
||||||
|
$('.e-select').selectpicker();
|
||||||
|
|
||||||
// $(".e-spinner").spinner(); //FIXME breaks tooltips etc.
|
// $(".e-spinner").spinner(); //FIXME breaks tooltips etc.
|
||||||
|
|
||||||
|
|
||||||
@@ -61,7 +65,7 @@ $(document).ready(function()
|
|||||||
$(".e-tags").tagit();
|
$(".e-tags").tagit();
|
||||||
|
|
||||||
|
|
||||||
$(".e-multiselect").chosen();
|
// $(".e-multiselect").chosen();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user