1.4.6-rc
This commit is contained in:
parent
0626d63db9
commit
3b46047433
dist
bootstrap-editable/js
jquery-editable
jquery-ui-datepicker
css/redmond
js
js
jqueryui-editable/js
14
dist/bootstrap-editable/js/bootstrap-editable.js
vendored
14
dist/bootstrap-editable/js/bootstrap-editable.js
vendored
@ -894,7 +894,8 @@ Applied as jQuery method.
|
|||||||
|
|
||||||
//methods
|
//methods
|
||||||
Popup.prototype = {
|
Popup.prototype = {
|
||||||
containerName: null, //tbd in child class
|
containerName: null, //method to call container on element
|
||||||
|
containerDataName: null, //object name in element's .data()
|
||||||
innerCss: null, //tbd in child class
|
innerCss: null, //tbd in child class
|
||||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||||
init: function(element, options) {
|
init: function(element, options) {
|
||||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
|||||||
|
|
||||||
/* returns container object */
|
/* returns container object */
|
||||||
container: function() {
|
container: function() {
|
||||||
return this.$element.data(this.containerDataName || this.containerName);
|
var container;
|
||||||
|
//first, try get it by `containerDataName`
|
||||||
|
if(this.containerDataName) {
|
||||||
|
if(container = this.$element.data(this.containerDataName)) {
|
||||||
|
return container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//second, try `containerName`
|
||||||
|
container = this.$element.data(this.containerName);
|
||||||
|
return container;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
/*! jQuery UI - v1.10.2 - 2013-04-07
|
/*! jQuery UI - v1.10.3 - 2013-08-05
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
* Includes: jquery.ui.core.css, jquery.ui.datepicker.css
|
* Includes: jquery.ui.core.css, jquery.ui.datepicker.css
|
||||||
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
@ -1,4 +1,4 @@
|
|||||||
/*! jQuery UI - v1.10.2 - 2013-04-07
|
/*! jQuery UI - v1.10.3 - 2013-08-05
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
* Includes: jquery.ui.core.css, jquery.ui.datepicker.css
|
* Includes: jquery.ui.core.css, jquery.ui.datepicker.css
|
||||||
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
/*! jQuery UI - v1.10.2 - 2013-04-07
|
/*! jQuery UI - v1.10.3 - 2013-08-05
|
||||||
* http://jqueryui.com
|
* http://jqueryui.com
|
||||||
* Includes: jquery.ui.core.js, jquery.ui.datepicker.js
|
* Includes: jquery.ui.core.js, jquery.ui.datepicker.js
|
||||||
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
|
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
|
||||||
@ -12,7 +12,7 @@ var uuid = 0,
|
|||||||
$.ui = $.ui || {};
|
$.ui = $.ui || {};
|
||||||
|
|
||||||
$.extend( $.ui, {
|
$.extend( $.ui, {
|
||||||
version: "1.10.2",
|
version: "1.10.3",
|
||||||
|
|
||||||
keyCode: {
|
keyCode: {
|
||||||
BACKSPACE: 8,
|
BACKSPACE: 8,
|
||||||
@ -262,7 +262,7 @@ $.fn.extend({
|
|||||||
});
|
});
|
||||||
|
|
||||||
$.extend( $.ui, {
|
$.extend( $.ui, {
|
||||||
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
||||||
plugin: {
|
plugin: {
|
||||||
add: function( module, option, set ) {
|
add: function( module, option, set ) {
|
||||||
var i,
|
var i,
|
||||||
@ -315,10 +315,9 @@ $.extend( $.ui, {
|
|||||||
})( jQuery );
|
})( jQuery );
|
||||||
(function( $, undefined ) {
|
(function( $, undefined ) {
|
||||||
|
|
||||||
$.extend($.ui, { datepicker: { version: "1.10.2" } });
|
$.extend($.ui, { datepicker: { version: "1.10.3" } });
|
||||||
|
|
||||||
var PROP_NAME = "datepicker",
|
var PROP_NAME = "datepicker",
|
||||||
dpuuid = new Date().getTime(),
|
|
||||||
instActive;
|
instActive;
|
||||||
|
|
||||||
/* Date picker manager.
|
/* Date picker manager.
|
||||||
@ -1055,9 +1054,10 @@ $.extend(Datepicker.prototype, {
|
|||||||
inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
|
inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inst.input.is(":visible") && !inst.input.is(":disabled")) {
|
if ( $.datepicker._shouldFocusInput( inst ) ) {
|
||||||
inst.input.focus();
|
inst.input.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
$.datepicker._curInst = inst;
|
$.datepicker._curInst = inst;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1084,10 +1084,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
|
inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
|
||||||
"Class"]("ui-datepicker-rtl");
|
"Class"]("ui-datepicker-rtl");
|
||||||
|
|
||||||
// #6694 - don't focus the input if it's already focused
|
if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
|
||||||
// this breaks the change event in IE
|
|
||||||
if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
|
|
||||||
inst.input.is(":visible") && !inst.input.is(":disabled") && inst.input[0] !== document.activeElement) {
|
|
||||||
inst.input.focus();
|
inst.input.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1104,16 +1101,11 @@ $.extend(Datepicker.prototype, {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Retrieve the size of left and top borders for an element.
|
// #6694 - don't focus the input if it's already focused
|
||||||
* @param elem (jQuery object) the element of interest
|
// this breaks the change event in IE
|
||||||
* @return (number[2]) the left and top borders
|
// Support: IE and jQuery <1.9
|
||||||
*/
|
_shouldFocusInput: function( inst ) {
|
||||||
_getBorders: function(elem) {
|
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
|
||||||
var convert = function(value) {
|
|
||||||
return {thin: 1, medium: 2, thick: 3}[value] || value;
|
|
||||||
};
|
|
||||||
return [parseFloat(convert(elem.css("border-left-width"))),
|
|
||||||
parseFloat(convert(elem.css("border-top-width")))];
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Check positioning to remain on screen. */
|
/* Check positioning to remain on screen. */
|
||||||
@ -1860,27 +1852,27 @@ $.extend(Datepicker.prototype, {
|
|||||||
inst.dpDiv.find("[data-handler]").map(function () {
|
inst.dpDiv.find("[data-handler]").map(function () {
|
||||||
var handler = {
|
var handler = {
|
||||||
prev: function () {
|
prev: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._adjustDate(id, -stepMonths, "M");
|
$.datepicker._adjustDate(id, -stepMonths, "M");
|
||||||
},
|
},
|
||||||
next: function () {
|
next: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._adjustDate(id, +stepMonths, "M");
|
$.datepicker._adjustDate(id, +stepMonths, "M");
|
||||||
},
|
},
|
||||||
hide: function () {
|
hide: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._hideDatepicker();
|
$.datepicker._hideDatepicker();
|
||||||
},
|
},
|
||||||
today: function () {
|
today: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._gotoToday(id);
|
$.datepicker._gotoToday(id);
|
||||||
},
|
},
|
||||||
selectDay: function () {
|
selectDay: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
|
$.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
selectMonth: function () {
|
selectMonth: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._selectMonthYear(id, this, "M");
|
$.datepicker._selectMonthYear(id, this, "M");
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
selectYear: function () {
|
selectYear: function () {
|
||||||
window["DP_jQuery_" + dpuuid].datepicker._selectMonthYear(id, this, "Y");
|
$.datepicker._selectMonthYear(id, this, "Y");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -2343,10 +2335,6 @@ $.fn.datepicker = function(options){
|
|||||||
$.datepicker = new Datepicker(); // singleton instance
|
$.datepicker = new Datepicker(); // singleton instance
|
||||||
$.datepicker.initialized = false;
|
$.datepicker.initialized = false;
|
||||||
$.datepicker.uuid = new Date().getTime();
|
$.datepicker.uuid = new Date().getTime();
|
||||||
$.datepicker.version = "1.10.2";
|
$.datepicker.version = "1.10.3";
|
||||||
|
|
||||||
// Workaround for #4055
|
|
||||||
// Add another global to avoid noConflict issues with inline event handlers
|
|
||||||
window["DP_jQuery_" + dpuuid] = $;
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
7
dist/jquery-editable/jquery-ui-datepicker/js/jquery-ui-1.10.3.custom.min.js
vendored
Normal file
7
dist/jquery-editable/jquery-ui-datepicker/js/jquery-ui-1.10.3.custom.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -894,7 +894,8 @@ Applied as jQuery method.
|
|||||||
|
|
||||||
//methods
|
//methods
|
||||||
Popup.prototype = {
|
Popup.prototype = {
|
||||||
containerName: null, //tbd in child class
|
containerName: null, //method to call container on element
|
||||||
|
containerDataName: null, //object name in element's .data()
|
||||||
innerCss: null, //tbd in child class
|
innerCss: null, //tbd in child class
|
||||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||||
init: function(element, options) {
|
init: function(element, options) {
|
||||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
|||||||
|
|
||||||
/* returns container object */
|
/* returns container object */
|
||||||
container: function() {
|
container: function() {
|
||||||
return this.$element.data(this.containerDataName || this.containerName);
|
var container;
|
||||||
|
//first, try get it by `containerDataName`
|
||||||
|
if(this.containerDataName) {
|
||||||
|
if(container = this.$element.data(this.containerDataName)) {
|
||||||
|
return container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//second, try `containerName`
|
||||||
|
container = this.$element.data(this.containerName);
|
||||||
|
return container;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
||||||
|
File diff suppressed because one or more lines are too long
28
dist/jqueryui-editable/js/jqueryui-editable.js
vendored
28
dist/jqueryui-editable/js/jqueryui-editable.js
vendored
@ -894,7 +894,8 @@ Applied as jQuery method.
|
|||||||
|
|
||||||
//methods
|
//methods
|
||||||
Popup.prototype = {
|
Popup.prototype = {
|
||||||
containerName: null, //tbd in child class
|
containerName: null, //method to call container on element
|
||||||
|
containerDataName: null, //object name in element's .data()
|
||||||
innerCss: null, //tbd in child class
|
innerCss: null, //tbd in child class
|
||||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||||
init: function(element, options) {
|
init: function(element, options) {
|
||||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
|||||||
|
|
||||||
/* returns container object */
|
/* returns container object */
|
||||||
container: function() {
|
container: function() {
|
||||||
return this.$element.data(this.containerDataName || this.containerName);
|
var container;
|
||||||
|
//first, try get it by `containerDataName`
|
||||||
|
if(this.containerDataName) {
|
||||||
|
if(container = this.$element.data(this.containerDataName)) {
|
||||||
|
return container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//second, try `containerName`
|
||||||
|
container = this.$element.data(this.containerName);
|
||||||
|
return container;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
||||||
@ -4498,7 +4508,8 @@ Editableform based on jQuery UI
|
|||||||
//extend methods
|
//extend methods
|
||||||
$.extend($.fn.editableContainer.Popup.prototype, {
|
$.extend($.fn.editableContainer.Popup.prototype, {
|
||||||
containerName: 'tooltip', //jQuery method, aplying the widget
|
containerName: 'tooltip', //jQuery method, aplying the widget
|
||||||
containerDataName: 'uiTooltip', //object name in elements .data() (e.g. uiTooltip for tooltip)
|
//object name in element's .data()
|
||||||
|
containerDataName: 'ui-tooltip',
|
||||||
innerCss: '.ui-tooltip-content',
|
innerCss: '.ui-tooltip-content',
|
||||||
|
|
||||||
//split options on containerOptions and formOptions
|
//split options on containerOptions and formOptions
|
||||||
@ -4539,15 +4550,8 @@ Editableform based on jQuery UI
|
|||||||
|
|
||||||
this.call(this.containerOptions);
|
this.call(this.containerOptions);
|
||||||
|
|
||||||
//disable standart triggering tooltip event
|
//disable standart triggering tooltip events
|
||||||
//for some versions of jQueryUI it gives error:
|
this.container()._off(this.container().element, 'mouseover focusin');
|
||||||
//TypeError: this.container(...)._off is not a function
|
|
||||||
//see: https://github.com/vitalets/x-editable/issues/32
|
|
||||||
if(this.container()._off) {
|
|
||||||
this.container()._off(this.container().element, 'mouseover focusin');
|
|
||||||
} else {
|
|
||||||
$.error('this.container()._off is not a function. jQuery UI: ' + $.ui.version);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
tip: function() {
|
tip: function() {
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user