1
0
mirror of synced 2024-11-28 23:56:03 +03:00

Updated docs to use the Select2 GitHub organization

Documentation will now be at https://select2.github.io
This commit is contained in:
Kevin Brown 2015-01-02 21:08:19 -05:00
parent ad94b6faba
commit ed24a51ea3
6 changed files with 26 additions and 2 deletions

View File

@ -60,10 +60,11 @@ module.exports = function (grunt) {
'gh-pages': { 'gh-pages': {
options: { options: {
base: 'docs', base: 'docs',
branch: 'master',
clone: 'node_modules/grunt-gh-pages/repo', clone: 'node_modules/grunt-gh-pages/repo',
message: 'Updated docs with master', message: 'Updated docs with master',
push: true, push: true,
repo: 'git@github.com:kevin-brown/select2.git' repo: 'git@github.com:select2/select2.github.io.git'
}, },
src: '**' src: '**'
}, },
@ -233,5 +234,5 @@ module.exports = function (grunt) {
grunt.registerTask('docs', ['jekyll:serve']); grunt.registerTask('docs', ['jekyll:serve']);
grunt.registerTask('release', ['default', 'clean:docs', 'gh-pages']); grunt.registerTask('docs-release', ['default', 'clean:docs', 'gh-pages']);
}; };

View File

@ -546,12 +546,14 @@ define('select2/results',[
if (isAtTop) { if (isAtTop) {
self.$results.scrollTop(0); self.$results.scrollTop(0);
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} else if (isAtBottom) { } else if (isAtBottom) {
self.$results.scrollTop( self.$results.scrollTop(
self.$results.get(0).scrollHeight - self.$results.height() self.$results.get(0).scrollHeight - self.$results.height()
); );
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} }

View File

@ -546,12 +546,14 @@ define('select2/results',[
if (isAtTop) { if (isAtTop) {
self.$results.scrollTop(0); self.$results.scrollTop(0);
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} else if (isAtBottom) { } else if (isAtBottom) {
self.$results.scrollTop( self.$results.scrollTop(
self.$results.get(0).scrollHeight - self.$results.height() self.$results.get(0).scrollHeight - self.$results.height()
); );
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} }

View File

@ -10081,12 +10081,14 @@ define('select2/results',[
if (isAtTop) { if (isAtTop) {
self.$results.scrollTop(0); self.$results.scrollTop(0);
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} else if (isAtBottom) { } else if (isAtBottom) {
self.$results.scrollTop( self.$results.scrollTop(
self.$results.get(0).scrollHeight - self.$results.height() self.$results.get(0).scrollHeight - self.$results.height()
); );
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} }

2
dist/js/select2.js vendored
View File

@ -974,12 +974,14 @@ define('select2/results',[
if (isAtTop) { if (isAtTop) {
self.$results.scrollTop(0); self.$results.scrollTop(0);
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} else if (isAtBottom) { } else if (isAtBottom) {
self.$results.scrollTop( self.$results.scrollTop(
self.$results.get(0).scrollHeight - self.$results.height() self.$results.get(0).scrollHeight - self.$results.height()
); );
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} }

15
docs/README.md Normal file
View File

@ -0,0 +1,15 @@
Select2 Documentation
=====================
This repository holds the latest documentation for [Select2][select2].
The documentation is automatically extracted from the `docs` directory at the
[Select2 source repository][select2-source]. This is done periodically by
the maintainers of Select2.
**Pull requests will usually be ignored, documentation fixes should be made in
the source repository.** We _may_ accept pull requests if they match the
source `docs` directory, but for the most part pull requests will be closed on
sight.
[select2]: https://select2.github.io
[select2-source]: https://github.com/select2/select2