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
|
||||
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
|
||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||
init: function(element, options) {
|
||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
||||
|
||||
/* returns container object */
|
||||
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') */
|
||||
|
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
|
||||
* 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
|
@ -1,4 +1,4 @@
|
||||
/*! jQuery UI - v1.10.2 - 2013-04-07
|
||||
/*! jQuery UI - v1.10.3 - 2013-08-05
|
||||
* http://jqueryui.com
|
||||
* 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
|
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
|
||||
* Includes: jquery.ui.core.js, jquery.ui.datepicker.js
|
||||
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
|
||||
@ -12,7 +12,7 @@ var uuid = 0,
|
||||
$.ui = $.ui || {};
|
||||
|
||||
$.extend( $.ui, {
|
||||
version: "1.10.2",
|
||||
version: "1.10.3",
|
||||
|
||||
keyCode: {
|
||||
BACKSPACE: 8,
|
||||
@ -262,7 +262,7 @@ $.fn.extend({
|
||||
});
|
||||
|
||||
$.extend( $.ui, {
|
||||
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
||||
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
||||
plugin: {
|
||||
add: function( module, option, set ) {
|
||||
var i,
|
||||
@ -315,10 +315,9 @@ $.extend( $.ui, {
|
||||
})( jQuery );
|
||||
(function( $, undefined ) {
|
||||
|
||||
$.extend($.ui, { datepicker: { version: "1.10.2" } });
|
||||
$.extend($.ui, { datepicker: { version: "1.10.3" } });
|
||||
|
||||
var PROP_NAME = "datepicker",
|
||||
dpuuid = new Date().getTime(),
|
||||
instActive;
|
||||
|
||||
/* Date picker manager.
|
||||
@ -1055,9 +1054,10 @@ $.extend(Datepicker.prototype, {
|
||||
inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
|
||||
}
|
||||
|
||||
if (inst.input.is(":visible") && !inst.input.is(":disabled")) {
|
||||
if ( $.datepicker._shouldFocusInput( inst ) ) {
|
||||
inst.input.focus();
|
||||
}
|
||||
|
||||
$.datepicker._curInst = inst;
|
||||
}
|
||||
},
|
||||
@ -1084,10 +1084,7 @@ $.extend(Datepicker.prototype, {
|
||||
inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
|
||||
"Class"]("ui-datepicker-rtl");
|
||||
|
||||
// #6694 - don't focus the input if it's already focused
|
||||
// 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) {
|
||||
if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
|
||||
inst.input.focus();
|
||||
}
|
||||
|
||||
@ -1104,16 +1101,11 @@ $.extend(Datepicker.prototype, {
|
||||
}
|
||||
},
|
||||
|
||||
/* Retrieve the size of left and top borders for an element.
|
||||
* @param elem (jQuery object) the element of interest
|
||||
* @return (number[2]) the left and top borders
|
||||
*/
|
||||
_getBorders: function(elem) {
|
||||
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")))];
|
||||
// #6694 - don't focus the input if it's already focused
|
||||
// this breaks the change event in IE
|
||||
// Support: IE and jQuery <1.9
|
||||
_shouldFocusInput: function( inst ) {
|
||||
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
|
||||
},
|
||||
|
||||
/* Check positioning to remain on screen. */
|
||||
@ -1860,27 +1852,27 @@ $.extend(Datepicker.prototype, {
|
||||
inst.dpDiv.find("[data-handler]").map(function () {
|
||||
var handler = {
|
||||
prev: function () {
|
||||
window["DP_jQuery_" + dpuuid].datepicker._adjustDate(id, -stepMonths, "M");
|
||||
$.datepicker._adjustDate(id, -stepMonths, "M");
|
||||
},
|
||||
next: function () {
|
||||
window["DP_jQuery_" + dpuuid].datepicker._adjustDate(id, +stepMonths, "M");
|
||||
$.datepicker._adjustDate(id, +stepMonths, "M");
|
||||
},
|
||||
hide: function () {
|
||||
window["DP_jQuery_" + dpuuid].datepicker._hideDatepicker();
|
||||
$.datepicker._hideDatepicker();
|
||||
},
|
||||
today: function () {
|
||||
window["DP_jQuery_" + dpuuid].datepicker._gotoToday(id);
|
||||
$.datepicker._gotoToday(id);
|
||||
},
|
||||
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;
|
||||
},
|
||||
selectMonth: function () {
|
||||
window["DP_jQuery_" + dpuuid].datepicker._selectMonthYear(id, this, "M");
|
||||
$.datepicker._selectMonthYear(id, this, "M");
|
||||
return false;
|
||||
},
|
||||
selectYear: function () {
|
||||
window["DP_jQuery_" + dpuuid].datepicker._selectMonthYear(id, this, "Y");
|
||||
$.datepicker._selectMonthYear(id, this, "Y");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@ -2343,10 +2335,6 @@ $.fn.datepicker = function(options){
|
||||
$.datepicker = new Datepicker(); // singleton instance
|
||||
$.datepicker.initialized = false;
|
||||
$.datepicker.uuid = new Date().getTime();
|
||||
$.datepicker.version = "1.10.2";
|
||||
|
||||
// Workaround for #4055
|
||||
// Add another global to avoid noConflict issues with inline event handlers
|
||||
window["DP_jQuery_" + dpuuid] = $;
|
||||
$.datepicker.version = "1.10.3";
|
||||
|
||||
})(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
|
||||
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
|
||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||
init: function(element, options) {
|
||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
||||
|
||||
/* returns container object */
|
||||
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') */
|
||||
|
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
|
||||
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
|
||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||
init: function(element, options) {
|
||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
||||
|
||||
/* returns container object */
|
||||
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') */
|
||||
@ -4498,7 +4508,8 @@ Editableform based on jQuery UI
|
||||
//extend methods
|
||||
$.extend($.fn.editableContainer.Popup.prototype, {
|
||||
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',
|
||||
|
||||
//split options on containerOptions and formOptions
|
||||
@ -4539,15 +4550,8 @@ Editableform based on jQuery UI
|
||||
|
||||
this.call(this.containerOptions);
|
||||
|
||||
//disable standart triggering tooltip event
|
||||
//for some versions of jQueryUI it gives error:
|
||||
//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);
|
||||
}
|
||||
//disable standart triggering tooltip events
|
||||
this.container()._off(this.container().element, 'mouseover focusin');
|
||||
},
|
||||
|
||||
tip: function() {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user