@girder/core 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/collections/Collection.js +2 -2
- package/package.json +1 -1
- package/views/widgets/EditAssetstoreWidget.js +1 -1
- package/views/widgets/ItemListWidget.js +1 -1
- package/views/widgets/SearchFieldWidget.js +1 -1
- package/views/widgets/SortCollectionWidget.js +1 -1
- package/views/widgets/TimelineWidget.js +1 -1
|
@@ -133,7 +133,7 @@ var Collection = Backbone.Collection.extend({
|
|
|
133
133
|
},
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* Sets a specific pagenumber for loading by
|
|
136
|
+
* Sets a specific pagenumber for loading by calculating the offset
|
|
137
137
|
* @param {Number} pageNumber The 0 indexed page that should be loaded based on the pageLimit size
|
|
138
138
|
* @param {Object} params Additional parameters to pass to the fetch call
|
|
139
139
|
* @returns {Promise} a fetch promise to retrieve more data
|
|
@@ -235,7 +235,7 @@ var Collection = Backbone.Collection.extend({
|
|
|
235
235
|
if (numUsed > newNumUsed) {
|
|
236
236
|
/*
|
|
237
237
|
* ...therefore, entries are being left out at the end,
|
|
238
|
-
* so they
|
|
238
|
+
* so they necessarily remain to be fetched.
|
|
239
239
|
*/
|
|
240
240
|
this._hasMorePages = true;
|
|
241
241
|
numUsed = newNumUsed;
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ var EditAssetstoreWidget = View.extend({
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* This maps each type of assetstore to a function to getter and setter
|
|
37
|
-
* functions. The set functions are
|
|
37
|
+
* functions. The set functions are responsible for populating the dialog
|
|
38
38
|
* fields with the appropriate current model values, and the get functions
|
|
39
39
|
* are responsible for reading the user input values from the dialog and
|
|
40
40
|
* returning a set of fields (excluding the name field) to set on the model.
|
|
@@ -325,7 +325,7 @@ var ItemListWidget = View.extend({
|
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
// Add in scroll event to monitor the scrollPos to prevent
|
|
328
|
+
// Add in scroll event to monitor the scrollPos to prevent unnecessary updates and also kill observer when user scrolls
|
|
329
329
|
widgetcontainer.bind('scroll.observerscroll', (evt) => {
|
|
330
330
|
if (this.tempScrollPos !== undefined && this.tempScrollPos !== widgetcontainer[0].scrollTop) {
|
|
331
331
|
this.tempScrollPos = widgetcontainer[0].scrollTop;
|
|
@@ -39,7 +39,7 @@ var SearchFieldWidget = View.extend({
|
|
|
39
39
|
'keydown .g-search-field': function (e) {
|
|
40
40
|
var code = e.keyCode || e.which;
|
|
41
41
|
var list, pos;
|
|
42
|
-
if (code === 13 && this.noResourceSelected) { /* enter without resource
|
|
42
|
+
if (code === 13 && this.noResourceSelected) { /* enter without resource selected */
|
|
43
43
|
e.preventDefault();
|
|
44
44
|
if (this.$('.g-search-field').val() !== '' && !this.noResultsPage) {
|
|
45
45
|
this._goToResultPage(this.$('.g-search-field').val(), this.currentMode);
|
|
@@ -9,7 +9,7 @@ import 'bootstrap/js/dropdown';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* This widget is used to provide a consistent widget for sorting
|
|
12
|
-
* pages of a Collection by a
|
|
12
|
+
* pages of a Collection by a chosen field.
|
|
13
13
|
*/
|
|
14
14
|
var SortCollectionWidget = View.extend({
|
|
15
15
|
events: {
|
|
@@ -42,7 +42,7 @@ var TimelineWidget = View.extend({
|
|
|
42
42
|
* @param [settings.segments=[]] A list of segments. Each element of the list
|
|
43
43
|
* should be an object with the following keys:
|
|
44
44
|
* - start: A number or timestamp representing
|
|
45
|
-
* - end: A
|
|
45
|
+
* - end: A number of timestamp representing the end of this segment.
|
|
46
46
|
* - [class]: A CSS class name to apply to the segment. Uses the
|
|
47
47
|
* widget's defaultSegmentClass if this key is not set.
|
|
48
48
|
* - [tooltip]: A tooltip value for this segment. Tooltips containing the
|