Skip to content

Commit

Permalink
1.12.6
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Apr 28, 2014
1 parent 44ebcd3 commit 172c6d2
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 42 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webshim",
"version": "1.12.6-RC2",
"version": "1.12.6",
"homepage": "https://github.com/aFarkas/webshim",
"authors": [
"aFarkas <[email protected]>"
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Release 1.12.6
----------
- added thousand separator to input[type="number"]
- several runtime performance improvements
- improved responsive default mediaplayer theme
- improved touch support / added fastclick / tab to mediaplayer controls and UI form widgets
- added playlist plugin feature to mediaelement

Release 1.12.5
----------
- added custom styleable controls to mediaelement feature `webshims.setOptions('mediaelement', {replaceUI: true});`
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/cfgs/input-date.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<div class="panel-heading">datepicker widget cookbook</div>
<div class="panel-body">
<div class="list-group">
<a href="http://jsfiddle.net/trixta/KEfEX/embedded/result,html,js,css/" class="list-group-item">creating a daterange picker (from <-> to) with two date widgets</a>
<a href="http://jsfiddle.net/trixta/KEfEX/embedded/result,html,js,css/" class="list-group-item">creating a daterange picker (from &lt;-&gt; to) with two date widgets</a>
<a href="http://jsfiddle.net/trixta/zRGd9/embedded/result,html,js,css/" class="list-group-item">disable specific dates in datepicker</a>
<a href="http://jsfiddle.net/trixta/fLBes/embedded/result,html,js,css/" class="list-group-item">Using datepicker for a birthdate</a>
<a href="http://jsfiddle.net/trixta/h7YdJ/embedded/result,html,js,css/" class="list-group-item">Dynamically setting min or max attribute to today's value</a>
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<div id="sidebar" class="interface">

<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.12.6-RC2</span>)</span></a>
<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.12.6</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/mediaelement.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

<div id="sidebar" class="interface">

<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.12.6-RC2</span>)</span></a>
<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.12.6</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down
4 changes: 2 additions & 2 deletions demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<div id="sidebar" class="interface">

<a class="toc_title"> Webshim <span class="version">(<span class="ws-version">1.12.6-RC2</span>)</span></a>
<a class="toc_title"> Webshim <span class="version">(<span class="ws-version">1.12.6</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down Expand Up @@ -137,7 +137,7 @@ <h3 id="downloads">Downloads &amp; Dependencies</h3>

<table>
<tr>
<td><a href="http://corrupt-system.de/webshims-stable.zip" class="download-button"> <strong><i>Version <span class="ws-version">1.12.6-RC2</span></i></strong> </a></td>
<td><a href="http://corrupt-system.de/webshims-stable.zip" class="download-button"> <strong><i>Version <span class="ws-version">1.12.6</span></i></strong> </a></td>
<td class="text"></td>
</tr>
</table>
Expand Down
4 changes: 2 additions & 2 deletions js-webshim/dev/polyfiller.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
path = path.split('?')[0].slice(0, path.lastIndexOf("/") + 1) + 'shims/';

$.extend(webshims, {
version: '1.12.6-RC3',
version: '1.12.6',
cfg: {
enhanceAuto: window.Audio && (!window.matchMedia || matchMedia('(min-device-width: 721px)').matches),
//addCacheBuster: false,
Expand All @@ -127,7 +127,7 @@
wspopover: {appendTo: 'auto', hideOnBlur: true},
ajax: {},
loadScript: function(src, success){
if(!$.ajax && !$.ajaxSettings.xhr){
if(!$.ajax || !$.ajaxSettings.xhr){
if(window.yepnope){
yepnope.injectJs(src, success);
} else if(window.require){
Expand Down
2 changes: 1 addition & 1 deletion js-webshim/dev/shims/combos/comboinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.12.6-RC3","features":{"swfmini":[16,7,2,8,1,12,19,25,23,27],"dom-support":[16,7,2,8,19,25,20,15,30,3,4,9,10,26,31,34],"forms":[16,7,2,8,1,32,15,30,3,4,9,31,6,5,14,29,28,33],"mediaelement":[16,7,2,8,1,12,19,25,23,20,21,13],"track":[12,34,21,22,13],"es5":[19,25,18,20,32],"filereader":[25,27,26],"forms-ext":[18,32,9,10,6,5,14,29,28,17,33,11],"range-ui":[18,9,10,6,5,17,11],"geolocation":[21],"details":[21,22],"jme":[98,99,97],"mediacontrols":[98,99],"playlist":[98,97]},"files":{"src/shims/combos/16.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/7.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/2.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/8.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/mediaelement-core.js"],"src/shims/combos/1.js":["src/shims/swfmini.js","src/shims/form-core.js","src/shims/mediaelement-core.js"],"src/shims/combos/12.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/19.js":["src/shims/swfmini.js","src/shims/es5.js","src/shims/dom-extend.js","src/shims/mediaelement-core.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/25.js":["src/shims/swfmini.js","src/shims/es5.js","src/shims/dom-extend.js","src/shims/filereader.js","src/shims/mediaelement-core.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/23.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js"],"src/shims/combos/27.js":["src/shims/swfmini.js","src/shims/filereader.js"],"src/shims/combos/18.js":["src/shims/es5.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/20.js":["src/shims/es5.js","src/shims/dom-extend.js","src/shims/mediaelement-core.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/32.js":["src/shims/es5.js","src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/15.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/30.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/3.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js"],"src/shims/combos/4.js":["src/shims/dom-extend.js","src/shims/form-message.js"],"src/shims/combos/9.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/10.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/26.js":["src/shims/dom-extend.js","src/shims/filereader.js"],"src/shims/combos/31.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js"],"src/shims/combos/34.js":["src/shims/dom-extend.js","src/shims/track.js"],"src/shims/combos/21.js":["src/shims/geolocation.js","src/shims/details.js","src/shims/mediaelement-jaris.js","src/shims/track.js"],"src/shims/combos/6.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/5.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/14.js":["src/shims/form-native-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js"],"src/shims/combos/29.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js"],"src/shims/combos/28.js":["src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/17.js":["src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/33.js":["src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/11.js":["src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/22.js":["src/shims/details.js","src/shims/track.js"],"src/shims/combos/13.js":["src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/98.js":["src/shims/jme/b.js","src/shims/jme/c.js","src/shims/jme/p.js"],"src/shims/combos/99.js":["src/shims/jme/b.js","src/shims/jme/c.js"],"src/shims/combos/97.js":["src/shims/jme/b.js","src/shims/jme/p.js"]}}
{"version":"1.12.6","features":{"swfmini":[16,7,2,8,1,12,19,25,23,27],"dom-support":[16,7,2,8,19,25,20,15,30,3,4,9,10,26,31,34],"forms":[16,7,2,8,1,32,15,30,3,4,9,31,6,5,14,29,28,33],"mediaelement":[16,7,2,8,1,12,19,25,23,20,21,13],"track":[12,34,21,22,13],"es5":[19,25,18,20,32],"filereader":[25,27,26],"forms-ext":[18,32,9,10,6,5,14,29,28,17,33,11],"range-ui":[18,9,10,6,5,17,11],"geolocation":[21],"details":[21,22],"jme":[98,99,97],"mediacontrols":[98,99],"playlist":[98,97]},"files":{"src/shims/combos/16.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/7.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/2.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js","src/shims/mediaelement-core.js"],"src/shims/combos/8.js":["src/shims/swfmini.js","src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/mediaelement-core.js"],"src/shims/combos/1.js":["src/shims/swfmini.js","src/shims/form-core.js","src/shims/mediaelement-core.js"],"src/shims/combos/12.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/19.js":["src/shims/swfmini.js","src/shims/es5.js","src/shims/dom-extend.js","src/shims/mediaelement-core.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/25.js":["src/shims/swfmini.js","src/shims/es5.js","src/shims/dom-extend.js","src/shims/filereader.js","src/shims/mediaelement-core.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/23.js":["src/shims/swfmini.js","src/shims/mediaelement-core.js"],"src/shims/combos/27.js":["src/shims/swfmini.js","src/shims/filereader.js"],"src/shims/combos/18.js":["src/shims/es5.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/20.js":["src/shims/es5.js","src/shims/dom-extend.js","src/shims/mediaelement-core.js","src/shims/mediaelement-jaris.js"],"src/shims/combos/32.js":["src/shims/es5.js","src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/15.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/30.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js","src/shims/form-datalist.js"],"src/shims/combos/3.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-message.js"],"src/shims/combos/4.js":["src/shims/dom-extend.js","src/shims/form-message.js"],"src/shims/combos/9.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/10.js":["src/shims/dom-extend.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/26.js":["src/shims/dom-extend.js","src/shims/filereader.js"],"src/shims/combos/31.js":["src/shims/dom-extend.js","src/shims/form-core.js","src/shims/form-datalist.js"],"src/shims/combos/34.js":["src/shims/dom-extend.js","src/shims/track.js"],"src/shims/combos/21.js":["src/shims/geolocation.js","src/shims/details.js","src/shims/mediaelement-jaris.js","src/shims/track.js"],"src/shims/combos/6.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js","src/shims/form-datalist.js"],"src/shims/combos/5.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/14.js":["src/shims/form-native-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js"],"src/shims/combos/29.js":["src/shims/form-native-extend.js","src/shims/form-number-date-api.js"],"src/shims/combos/28.js":["src/shims/form-shim-extend.js","src/shims/form-message.js","src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/17.js":["src/shims/form-number-date-api.js","src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/33.js":["src/shims/form-number-date-api.js","src/shims/form-datalist.js"],"src/shims/combos/11.js":["src/shims/range-ui.js","src/shims/form-number-date-ui.js"],"src/shims/combos/22.js":["src/shims/details.js","src/shims/track.js"],"src/shims/combos/13.js":["src/shims/mediaelement-core.js","src/shims/track.js"],"src/shims/combos/98.js":["src/shims/jme/b.js","src/shims/jme/c.js","src/shims/jme/p.js"],"src/shims/combos/99.js":["src/shims/jme/b.js","src/shims/jme/c.js"],"src/shims/combos/97.js":["src/shims/jme/b.js","src/shims/jme/p.js"]}}
31 changes: 18 additions & 13 deletions js-webshim/dev/shims/forms-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,24 +650,29 @@ webshims.register('forms-picker', function($, webshims, window, document, undefi
role: 'spinbutton'
}).on(spinEvents);
}
$(this.buttonWrapper).on('mousepressstart mousepressend', '.step-up, .step-down', mousePress).on('mousedown mousepress', '.step-up', function(e){
step.stepUp();
}).on('mousedown mousepress', '.step-down', function(e){
step.stepDown();
});
$(this.buttonWrapper)
.on('mousepressstart mousepressend', '.step-up, .step-down', mousePress)
.on('mousedown mousepress', '.step-up', function(e){
step.stepUp();
})
.on('mousedown mousepress', '.step-down', function(e){
step.stepDown();
})
;
initChangeEvents();
}
},
_getSelectionEnd: function(val){
var oldVal, selectionEnd;

if(this.type == 'number' && (oldVal = this.element[0].value) && oldVal != val && this.element.is(':focus') && (selectionEnd = this.element.prop('selectionEnd')) < oldVal.length){
oldVal = oldVal.substr(0, selectionEnd).split(curCfg.numberFormat[',']);
val = val.substr(0, selectionEnd).split(curCfg.numberFormat[',']);
if(oldVal.length < val.length){
selectionEnd++;
} else if(oldVal.length > val.length){
selectionEnd--;
if((oldVal = this.element[0].value) && this.element.is(':focus') && (selectionEnd = this.element.prop('selectionEnd')) < oldVal.length){
if(this.type == 'number'){
oldVal = oldVal.substr(0, selectionEnd).split(curCfg.numberFormat[',']);
val = val.substr(0, selectionEnd).split(curCfg.numberFormat[',']);
if(oldVal.length < val.length){
selectionEnd++;
} else if(oldVal.length > val.length){
selectionEnd--;
}
}
return selectionEnd;
}
Expand Down
Loading

0 comments on commit 172c6d2

Please sign in to comment.