* Mail: Make selected email item in compose dialog editable

- Edit selected email addresses by double clicking on them (For all email fields where free entry is allowed. e.g. To, CC, and Bcc fields in compose)
- Update widget taglist and its plugin (magicsuggest)
This commit is contained in:
Hadi Nategh 2014-10-30 15:12:11 +00:00
commit 82d40e52c0
15 changed files with 863 additions and 537 deletions

View File

@ -14,7 +14,7 @@
/*egw:uses /*egw:uses
et2_core_inputWidget; et2_core_inputWidget;
/phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.js; /phpgwapi/js/jquery/magicsuggest/magicsuggest.js;
*/ */
/** /**
@ -602,4 +602,4 @@ et2_register_widget(et2_taglist_ro, ["taglist_ro","taglist_email_ro", "taglist_a
// Require css // Require css
// TODO: merge into etemplate2.css with all other widgets when done // TODO: merge into etemplate2.css with all other widgets when done
if(typeof egw != 'undefined') egw(window).includeCSS(egw.webserverUrl + "/phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.css"); if(typeof egw != 'undefined') egw(window).includeCSS(egw.webserverUrl + "/phpgwapi/js/jquery/magicsuggest/magicsuggest.css");

View File

@ -6,7 +6,7 @@
/** /**
* Magic suggest / tag list widget * Magic suggest / tag list widget
*/ */
@import url("../../../phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.css"); @import url("../../../phpgwapi/js/jquery/magicsuggest/magicsuggest.css");
/** /**

View File

@ -3936,52 +3936,59 @@ app.classes.mail = AppJS.extend(
set_dragging_dndCompose: function () set_dragging_dndCompose: function ()
{ {
var zIndex = 100; var zIndex = 100;
var self = this; var dragItem = jQuery('div.ms-sel-item:not(div.ui-draggable)');
if (dragItem.length > 0)
jQuery('div.ms-sel-item:not(div.ui-draggable)').draggable({ {
appendTo:'body', dragItem.draggable({
//Performance wise better to not add ui-draggable class to items since we are not using that class appendTo:'body',
containment:'document', //Performance wise better to not add ui-draggable class to items since we are not using that class
distance: 0, containment:'document',
cursor:'move', distance: 0,
cursorAt:{left:2}, cursor:'move',
//cancel dragging on close button to avoid conflict with close action cursorAt:{left:2},
cancel:'.ms-close-btn', //cancel dragging on close button to avoid conflict with close action
/** cancel:'.ms-close-btn',
* function to act on draggable item on revert's event /**
* @returns {Boolean} return true * function to act on draggable item on revert's event
*/ * @returns {Boolean} return true
revert: function (){ */
this.parent().find('.ms-sel-item').css('position','relative'); revert: function (){
return true; this.parent().find('.ms-sel-item').css('position','relative');
}, return true;
/** },
* function to act as draggable starts dragging /**
* * function to act as draggable starts dragging
* @param {type} event *
* @param {type} ui * @param {type} event
*/ * @param {type} ui
start:function(event, ui) */
{ start:function(event, ui)
if (event.ctrlKey)
{ {
jQuery(this) var dragItem = jQuery(this);
.addClass('mailCompose_copyEmail') if (event.ctrlKey || event.metaKey)
.css('cursor','copy'); {
dragItem.addClass('mailCompose_copyEmail')
.css('cursor','copy');
}
dragItem.css ('z-index',zIndex++);
dragItem.css('position','absolute');
},
/**
*
* @param {type} event
* @param {type} ui
*/
create:function(event,ui)
{
jQuery(this).css('css','move');
} }
jQuery(this).css ('z-index',zIndex++); }).draggable('disable');
jQuery(this).css('position','absolute'); window.setTimeout(function(){
},
/** if(dragItem && dragItem.data() && typeof dragItem.data()['uiDraggable'] !== 'undefined') dragItem.draggable('enable');
* },100);
* @param {type} event }
* @param {type} ui
*/
create:function(event,ui)
{
jQuery(this).css('css','move');
}
});
}, },
/** /**
@ -3992,12 +3999,13 @@ app.classes.mail = AppJS.extend(
{ {
var self = this; var self = this;
var emailTags = jQuery('#mail-compose_to,#mail-compose_cc,#mail-compose_bcc');
//Call to make new items draggable //Call to make new items draggable
jQuery('#mail-compose_to,#mail-compose_cc,#mail-compose_bcc').hover(function(){ emailTags.hover(function(){
self.set_dragging_dndCompose(); self.set_dragging_dndCompose();
}); });
//Make used email-tag list widgets in mail compose droppable //Make used email-tag list widgets in mail compose droppable
jQuery('#mail-compose_to,#mail-compose_cc,#mail-compose_bcc').droppable({ emailTags.droppable({
access:'.ms-sel-item', access:'.ms-sel-item',
/** /**

View File

@ -1311,7 +1311,9 @@ div#mail-index div#mail-index_mailPreview div#mail-index_mailPreviewHeadersSubje
padding-right: 5px; padding-right: 5px;
} }
#mail-compose .mailComposeHeaders span.ms-close-btn, #mail-compose .mailComposeHeaders span.ms-close-btn,
#mail-compose .mailComposeHeadersSection span.ms-close-btn { #mail-compose .mailComposeHeadersSection span.ms-close-btn,
#mail-compose .mailComposeHeaders span.ms-edit-btn,
#mail-compose .mailComposeHeadersSection span.ms-edit-btn {
width: auto; width: auto;
background-repeat: no-repeat; background-repeat: no-repeat;
padding-right: 8px; padding-right: 8px;

View File

@ -569,7 +569,7 @@ div#mail-index{
padding-right: 5px; padding-right: 5px;
} }
span.ms-close-btn { span.ms-close-btn, span.ms-edit-btn{
width: auto; width: auto;
background-repeat: no-repeat; background-repeat: no-repeat;
padding-right: 8px; padding-right: 8px;

View File

@ -0,0 +1,109 @@
MagicSuggest v2.0.0
--------------------------
MagicSuggest has a new home here: http://nicolasbize.com/magicsuggest/
It includes a great new API documentation, examples, tutorials and more!
Milestone change log:
MagicSuggest v.2.0.0
====================
- New home at http://nicolasbize.com/magicsuggest/ to run dynamic examples that gh-pages couldn't handle
- Now runs with Bootstrap 3 (required)
- Responsive design
- No more intrusive loading
v1.3.1 BugFixing again! (Minor Tagged Milestone - August 17th, 2013)
====================================================================
- (fix) enable after disable now works (credits to amanokerim - https://github.com/amanokerim)
- (fix) trigger icon now takes full height (credits to DioVayne - https://github.com/DioVayne)
- (fix) clear now compatible with isSilent (credits to Coywolf - https://github.com/Coywolf)
- (fix) groupBy was broken by 1.3.0
- (fea) compatibility with latest jQuery 1.10.2 (credits to RafaelMalgor - https://github.com/RafaelMalgor)
- (fea) resulted JSON objects can now have a custom result property resultsField (credits to RafaelMalgor - https://github.com/RafaelMalgor)
v1.3.0 Some more features and bugfixing (Minor Tagged Milestone - May 25th, 2013)
=================================================================================
- (fea) combo component can now be fetched through the same div element (credits to meghuizen - https://github.com/meghuizen)
- (fix) CSS bug with 1.2.7+ with triggerHidden (credits to ScullWM - https://github.com/ScullWM)
- (fix) container would always render with 1 row even though a bunch of data was loaded (credits to travishaagen - https://github.com/travishaagen)
- (fea) added minimum jQuery version to work in docs (credits to rajeshmeniya - https://github.com/rajeshmeniya)
- (fix) input was not correctly enabled / disabled (credits to zerekw - https://github.com/zerekw)
- (fea) added getName and setName to easily fetch/set form name of component (credits to jbmoens - https://github.com/jbmoens)
- (fix) when a value is specified in the DOM original element, it is passed correctly to MS. (credits to jbmoens - https://github.com/jbmoens)
- (fix) input space now always uses the remaining space as this leads to less issues.
- (fea) combo has now more logic when used for a single selection combo box.
- (fix) space taken for single selection on a small combo remains on one line. (credits to ScullWM - https://github.com/ScullWM)
- (fea) multiple items can now be selected through the Ctrl key (credits to meghuizen - https://github.com/meghuizen)
- (fea) trigger icon now uses pure CSS (credits to meghuizen - https://github.com/meghuizen)
- (fea) cfg(data) can now take a function as parameter (credits to meghuizen - https://github.com/meghuizen)
- (fea) cfg(data) can take a json object whose data items are within the results property
- (fix) CSS has been fixed so it behaves correctly within a bootstrap modal (credits to daenuprobst - https://github.com/daenuprobst)
- (fea) suggestion rendering optimized by reducing draw calls to one. (credits to meghuizen - https://github.com/meghuizen)
- (fix) tags can now longer be removed when the combo is disabled (credits to grena - https://github.com/grena)
- (fix) setting data was only going through visible set of suggestions (credits to grena - https://github.com/grena)
- (fix) missing semi-colons, went through full jslint (credits to grena - https://github.com/grena)
- (fix) suggestions were not appearing when maxSuggestions was set to 10. (credits to zerekw - https://github.com/zerekw and plasmaxy - https://github.com/plasmaxy)
- (fix) the clear function was broken (credits to travishaagen - https://github.com/travishaagen)
- (fea) the component's config can now be setup entirely from the DOM container element.
- (fea) added a silent mode to selection changing methods in order to know if it was user-triggered or not. (credits to travishaagen - https://github.com/travishaagen)
- (fea) added a setData(object) method to fill the combo after it has been rendered (credits to travishaagen - https://github.com/travishaagen)
- (fix) ajax query was sent twice when the user was typing faster than the typeDelay (credits to arvenom - https://github.com/arvenom)
- (fix) highlighting the search results was also highlighting html tags when using custom rendering (credits to pstuart2 - https://github.com/pstuart2)
- (fea) added cfg(strictSuggest) so that user can choose how the suggestions will be made
- (fea) added cfg(toggleOnClick) so that the user can expand/close the combo by clicking on it (credits to psulek - https://github.com/psulek)
- (fix) empty suggestion text was wrongly triggered when performing initial ajax call (credits to curtgrimes - https://github.com/curtgrimes)
- (fea) added cfg(selectionRenderer) (credits to pstuart2 - https://github.com/pstuart2)
- (fix) empty text class was not triggered properly (credits to jods4 - https://github.com/jods4)
- (fix) IE8 compatibility (credits to Airborn22 - https://github.com/Airborn22)
- (fea) MagicSuggest can now be rendered from a select dom component. (credits to Yogu - https://github.com/Yogu)
- (fea) on blur now automatically adds the typed text to the selection if free entries are allowed (credits to Airborn22 - https://github.com/Airborn22)
- (fea) new public method empty() which will clear the user text.
- (fix) make sure combo is filled prior to triggering load event
- (fea) renamed some events for better readability
v1.2.0 Standardization on jQuery plugins (Minor Tagged Milestone - Mar. 4th 2013)
=================================================================================
- (fix) fixed disabled behaviour when one could still edit the emptyText
- (fix) collapse method would throw an error
- (cfg) typeDelay: Amount (in ms) between keyboard registers (credits to jayesbee - https://github.com/jayesbee)
- (fea) standardized on jQuery plugin (credits to jayesbee - https://github.com/jayesbee)
- (fea) added documentation examples
- (cfg) name: name used for magicsuggest as a form element (credits to iambibhas - https://github.com/iambibhas)
- (fix) start up rendering when value rendered as text
- (cfg) dataParams: additional parameters for ajax request (credits to jayesbee - https://github.com/jayesbee)
- (fix) other rendering issues with inner text
v1.1.0 Various enhancements and bug fixing (Minor Tagged Milestone - Feb. 19th 2013)
====================================================================================
- (fea) close cross style now blends in a bit more
- (fea) escape now collapses the combo (without loosing focus)
- (fix) can't enter entries made out of space
- (cfg) noSuggestionText: text displayed when there are no suggestions from given data
- (cfg) minCharsRenderer: allows to customize message when not enough characters are entered to trigger a search
- (cfg) maxEntryRenderer: allows to customize message when too many characters have been entered
- (cfg) maxEntryLength: amount of characters to limit user input
- (cfg) style: custom style applied to the main container
- (cfg) infoMsgCls: custom class to apply to the helper
- (fea) new helper message on upper right to inform on the component status
- (cfg) id: allows to give the component a custom ID
- (cfg) inputCfg : allows additional parameters passed out to the INPUT tag. Enables usage of AngularJS's custom tags for ex.
- (cfg) renderer : allows custom rendering within the combo.
- (cfg) groupBy : allows grouping within the combo box listing.
- (fix) blur event now registers correctly when selecting an element from the combo
- (fix) flicker in IE when hovering trigger
- (cfg) strictSuggest : set how suggestions will be proposed
- (fix) maxResults is now correctly interpreted
- (fix) maxSelection is now correctly interpreted
- (cfg) method : set the ajax method, default to 'POST'
- (fea) ajax request can now interpret multiple results from server base.
- (fix) bug where the blur event would be triggered when clicking upon the page
- (cfg) required : triggers invalid / valid events when not filled
- (fea) validation through isValid() method
v1.0. initial component release
===============================
- choose to allow free entries or not
- keyboard management
- theme ability
- static and dynamic data processing
- positionning

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,9 @@
{
"name": "magicsuggest",
"version": "2.1.4",
"main": ["magicsuggest.js", "magicsuggest.css"],
"dependencies": {
"bootstrap": "~3",
"jquery": ">= 1.8.3"
}
}

View File

@ -0,0 +1,22 @@
{
"name": "nicolasbize/magicsuggest",
"description": "MagicSuggest is a multiple selection auto suggest combo box for Bootstrap 3.",
"version": "2.1.4",
"type": "component",
"homepage": "http://nicolasbize.com/magicsuggest",
"license": "MIT",
"require": {
"components/bootstrap": ">=3.0.0",
"components/jquery": ">=1.8.3"
},
"extra": {
"component": {
"scripts": [
"magicsuggest.js"
],
"files": [
"magicsuggest.css"
]
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,27 +1,19 @@
/**
* Multiple Selection Component for Bootstrap
* Check nicolasbize.github.io/magicsuggest/ for latest updates.
*
* Author: Nicolas Bize
* Created: Feb 8th 2013
* Last Updated: Oct 16th 2014
* Version: 2.1.4
* Licence: MagicSuggest is licenced under MIT licence (http://opensource.org/licenses/MIT)
*/
.ms-ctn{ .ms-ctn{
position: relative; position: relative;
height: 28px; padding: 5px 12px;
padding: 0; height: auto;
margin-bottom: 0px;
font-size: 14px;
line-height: 20px;
color: #555555;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-color: #ffffff;
border: 1px solid #cccccc;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
cursor: default;
display: block;
} }
.ms-ctn-invalid{ .ms-inv{
border: 1px solid #CC0000; border: 1px solid #CC0000;
} }
.ms-ctn-readonly{ .ms-ctn-readonly{
@ -41,19 +33,25 @@
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.ms-ctn-focus{
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}
.ms-ctn input{ .ms-ctn input{
border: 0; border: 0;
box-shadow: none; box-shadow: none;
-webkit-transition: none; -webkit-transition: none;
outline: none; outline: none;
display: block; display: block;
padding: 4px 6px; padding: 0;
line-height: normal; line-height: 1.42857143;
overflow: hidden; margin: 1px 0;
height: auto; width: 100%;
border-radius: 0; }
.ms-ctn .ms-sel-ctn input{
float: left; float: left;
margin: 2px 0 2px 2px;
} }
.ms-ctn-disabled input{ .ms-ctn-disabled input{
cursor: not-allowed; cursor: not-allowed;
@ -71,14 +69,18 @@
-webkit-transition: none; -webkit-transition: none;
background: #FFF; background: #FFF;
} }
.ms-ctn input::-ms-clear {
width: 0;
height: 0;
}
.ms-ctn .ms-trigger{ .ms-ctn .ms-trigger{
float: right; top: 0;
width: 27px; width: 25px;
height:100%; height:100%;
position:absolute; position:absolute;
right:0; right:0;
background: transparent;
border-left: 1px solid #CCC; border-left: 1px solid #CCC;
background: #EEE;
cursor: pointer; cursor: pointer;
} }
.ms-ctn .ms-trigger .ms-trigger-ico { .ms-ctn .ms-trigger .ms-trigger-ico {
@ -86,16 +88,15 @@
width: 0; width: 0;
height: 0; height: 0;
vertical-align: top; vertical-align: top;
border-top: 4px solid gray; border-top: 4px solid #333;
border-right: 4px solid transparent; border-right: 4px solid transparent;
border-left: 4px solid transparent; border-left: 4px solid transparent;
content: ""; content: "";
margin-left: 9px; margin-left: 8px;
margin-top: 13px; margin-top: 15px;
} }
.ms-ctn .ms-trigger:hover{ .ms-ctn .ms-trigger:hover{
background: -moz-linear-gradient(100% 100% 90deg, #e3e3e3, #f1f1f1); background-color: #e6e6e6;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f1f1f1), to(#e3e3e3));
} }
.ms-ctn .ms-trigger:hover .ms-trigger-ico{ .ms-ctn .ms-trigger:hover .ms-trigger-ico{
background-position: 0 -4px; background-position: 0 -4px;
@ -108,25 +109,9 @@
border-bottom: 1px solid #CCC; border-bottom: 1px solid #CCC;
} }
.ms-res-ctn{ .ms-res-ctn{
position: relative; width: 100%;
background: #FFF; display: block;
overflow-y: auto; overflow-y: auto;
z-index: 9999;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
border: 1px solid #CCC;
left: -1px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
border-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
} }
.ms-res-ctn .ms-res-group{ .ms-res-ctn .ms-res-group{
line-height: 23px; line-height: 23px;
@ -149,32 +134,57 @@
padding-left: 15px; padding-left: 15px;
} }
.ms-res-ctn .ms-res-odd{ .ms-res-ctn .ms-res-odd{
background: #F3F3F3; background: #FAFAFA;
} }
.ms-res-ctn .ms-res-item-active{ .ms-res-ctn .ms-res-item-active{
background-color: #3875D7; background-color: #F5F5F5;
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)); .ms-res-ctn .ms-res-item-disabled{
background-image: -webkit-linear-gradient(top, #3875D7 20%, #2A62BC 90%); color: #CCC;
background-image: -moz-linear-gradient(top, #3875D7 20%, #2A62BC 90%); cursor: default;
background-image: -o-linear-gradient(top, #3875D7 20%, #2A62BC 90%);
background-image: linear-gradient(#3875D7 20%, #2A62BC 90%);
color: #fff;
} }
.ms-sel-ctn{ .ms-sel-ctn{
overflow: auto; overflow: auto;
line-height: 22px; line-height: 18px;
padding-right:27px; padding-right: 25px;
} }
.ms-no-trigger .ms-sel-ctn{
padding-right: 0;
}
/** Outer and global tags **/
.ms-sel-ctn .ms-sel-item{ .ms-sel-ctn .ms-sel-item{
background: #555; background: #F3F3F3;
color: #EEE; color: #999;
float: left;
font-size: 12px;
padding: 3px 5px;
border-radius: 3px;
border: 1px solid #DDD;
margin: 3px 0px 1px 0;
}
.ms-sel-ctn .ms-sel-invalid{
border-color: rgb(248, 165, 165) !important;
background: #FDF2F2 !important;
}
.ms-sel-ctn .ms-sel-item:hover{
border: 1px solid #BBB;
}
/** For inner tags **/
.ms-ctn .ms-sel-item{
background: #F3F3F3;
color: #999;
float: left; float: left;
font-size: 12px; font-size: 12px;
padding: 0 5px; padding: 0 5px;
border-radius: 3px; border-radius: 3px;
margin-left: 5px; border: 1px solid #DDD;
margin-top: 4px; margin: 1px 5px 1px 0;
}
.ms-ctn .ms-sel-item:hover{
border: 1px solid transparent;
}
.ms-ctn-focus .ms-sel-item:hover{
border: 1px solid #BBB;
} }
.ms-sel-ctn .ms-sel-text{ .ms-sel-ctn .ms-sel-text{
background: #FFF; background: #FFF;
@ -184,14 +194,14 @@
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
} }
.ms-as-string .ms-sel-text{
border-color: transparent;
}
.ms-res-ctn .ms-res-item em{ .ms-res-ctn .ms-res-item em{
font-style: normal; font-style: normal;
background: #565656; background: #565656;
color: #FFF; color: #FFF;
} }
.ms-sel-ctn .ms-sel-item:hover{
background: #565656;
}
.ms-sel-ctn .ms-sel-text:hover{ .ms-sel-ctn .ms-sel-text:hover{
background: #FFF; background: #FFF;
} }
@ -199,9 +209,6 @@
border: 1px solid red; border: 1px solid red;
background: #757575; background: #757575;
} }
.ms-ctn .ms-sel-ctn .ms-sel-item{
margin-top: 3px;
}
.ms-stacked .ms-sel-item{ .ms-stacked .ms-sel-item{
float: inherit; float: inherit;
} }
@ -210,12 +217,12 @@
cursor: pointer; cursor: pointer;
height: 7px; height: 7px;
float: right; float: right;
margin: 8px 2px 0 10px; margin: 6px 2px 0 10px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAOCAYAAADjXQYbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQB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ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAEZ0FNQQAAsY58+1GTAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABSSURBVHjahI7BCQAwCAOTzpThHMHh3Kl9CVos9XckFwQAuPtGuWTWwMwaczKzyHsqg6+5JqMJr28BABHRwmTWQFJjTmYWOU1L4tdck9GE17dnALGAS+kAR/u2AAAAAElFTkSuQmCC);
background-position: 0 -7px;
} }
.ms-sel-ctn .ms-sel-item .ms-close-btn:hover{ .ms-sel-ctn .ms-sel-item .ms-close-btn:hover{
background-position: 0 -7px; background-position: 0 0;
} }
.ms-helper{ .ms-helper{
color: #AAA; color: #AAA;
@ -223,4 +230,34 @@
position: absolute; position: absolute;
top: -17px; top: -17px;
right: 0; right: 0;
} }
.ms-ctn.input-lg .ms-trigger .ms-trigger-ico {
margin-top: 17px
}
.ms-ctn.input-sm .ms-trigger .ms-trigger-ico {
margin-top: 13px
}
.ms-ctn.input-lg .ms-sel-ctn .ms-sel-item {
padding-top: 2px;
padding-bottom: 3px;
}
.ms-ctn.input-sm .ms-sel-ctn {
line-height: 15px;
}
.ms-ctn.input-sm .ms-sel-ctn .ms-sel-item {
padding-top: 1px;
padding-bottom: 1px;
margin-top:0;
margin-bottom: 0;
}
.ms-ctn.input-sm .ms-sel-ctn .ms-sel-item .ms-close-btn {
margin-top: 4px;
}
.ms-ctn .ms-sel-ctn {
margin-left: -7px;
}
.ms-ctn .ms-trigger:hover {
width:24px;
right: 1px;
border-radius: 0 3px 3px 0;
}

View File

@ -0,0 +1,36 @@
{
"name": "magicsuggest",
"title": "MagicSuggest",
"description": "MagicSuggest is a multiple selection auto suggest combo box for Bootstrap 3.",
"keywords": [
"select",
"suggest",
"autocomplete",
"typeahead",
"dropdown",
"multiselect",
"tag",
"tagging",
"bootstrap",
"combobox"
],
"version": "2.1.4",
"author": {
"name": "Nicolas Bize",
"url": "https://github.com/nicolasbize"
},
"licenses": [
{
"type": "MIT",
"url": "http://nicolasbize.com/magicsuggest/licence.html"
}
],
"bugs": "https://github.com/nicolasbize/magicsuggest/issues",
"homepage": "http://nicolasbize.com/magicsuggest/",
"docs": "http://nicolasbize.com/magicsuggest/doc.html",
"download": "https://github.com/nicolasbize/magicsuggest/releases",
"dependencies": {
"jquery": ">=1.8.3",
"bootstrap": ">=3.0.0"
}
}