Initial copy of old site.

This commit is contained in:
2018-08-14 10:56:12 -07:00
parent 94000458e4
commit 7c516cf4d4
112 changed files with 1822 additions and 1791 deletions

View File

@@ -41,7 +41,7 @@
//this.$list.appendTo($input.parent());
this.$list.appendTo(this.$listContainer);
//this.$listContainer.appendTo($input.parent());
this.$listContainer.prependTo(document.body); //Place the container at the top of the page with no height.
this.$listContainer.prependTo(document.body); //Place the container at the top of the Admin with no height.
//Setup the list to highlight the item the user is hovering over, to select the item the user clicks, and to remove the hover styling when the list closes due to a selection being made.
this.$list
@@ -84,7 +84,7 @@
// this.$list
// .on('focus', $.proxy(_this.focus, _this, "list"))
// .on('blur', $.proxy(_this.blur, _this, "list"));
//Handle key events on the input field. Up/down arrows should change the selection in the list. Enter should select an item and close the list. Tab and escape should hide the list before moving to the next focusable element on the page.
//Handle key events on the input field. Up/down arrows should change the selection in the list. Enter should select an item and close the list. Tab and escape should hide the list before moving to the next focusable element on the Admin.
this.$input.on('input keydown', function(event) {
switch(event.keyCode) {
case 38: { //Up
@@ -376,7 +376,7 @@
let position = this.$input.offset();
this.isShowing = true;
// Position the list relative to the field. Note that we place the combo at the top of the page (in the body tag) to avoid overflow not showing and to ensure the page scrolls if needed.
// Position the list relative to the field. Note that we place the combo at the top of the Admin (in the body tag) to avoid overflow not showing and to ensure the Admin scrolls if needed.
this.$list.css({position: 'absolute', top: position.top + this.$input.outerHeight(), left: position.left, width: this.$input.outerWidth()});
this.clearFilter();

View File

@@ -473,7 +473,7 @@ S2.define('jquery',[],function () {
console.error(
'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
'found. Make sure that you are including jQuery before Select2 on your ' +
'web page.'
'web Admin.'
);
}
@@ -6179,9 +6179,9 @@ S2.define('select2/selection/stopPropagation',[
} else {
this.onmousewheel = handler;
}
// Store the line height and page height for this particular element
// Store the line height and Admin height for this particular element
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
$.data(this, 'mousewheel-Admin-height', special.getPageHeight(this));
},
teardown: function() {
@@ -6194,7 +6194,7 @@ S2.define('select2/selection/stopPropagation',[
}
// Clean up the data we added to the element
$.removeData(this, 'mousewheel-line-height');
$.removeData(this, 'mousewheel-page-height');
$.removeData(this, 'mousewheel-Admin-height');
},
getLineHeight: function(elem) {
@@ -6278,7 +6278,7 @@ S2.define('select2/selection/stopPropagation',[
deltaY *= lineHeight;
deltaX *= lineHeight;
} else if ( orgEvent.deltaMode === 2 ) {
var pageHeight = $.data(this, 'mousewheel-page-height');
var pageHeight = $.data(this, 'mousewheel-Admin-height');
delta *= pageHeight;
deltaY *= pageHeight;
deltaX *= pageHeight;

View File

@@ -473,7 +473,7 @@ S2.define('jquery',[],function () {
console.error(
'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
'found. Make sure that you are including jQuery before Select2 on your ' +
'web page.'
'web Admin.'
);
}