datavis-glide 4.0.0 → 4.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datavis-glide",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "DataVis GLIDE (Graphical Layer for Interactive Data Exploration)",
5
5
  "keywords": [
6
6
  "data",
@@ -900,6 +900,7 @@ GridTable.prototype._addSortingToHeader = function (data, orientation, spec, con
900
900
 
901
901
  // Create the sort icon container with an initial neutral "sortable" icon.
902
902
  var sortIcon_btn = document.createElement('button');
903
+ sortIcon_btn.setAttribute('type', 'button');
903
904
  sortIcon_btn.classList.add('wcdv_icon_button');
904
905
  sortIcon_btn.classList.add(sortIcon_class);
905
906
  sortIcon_btn.classList.add(sortIcon_orientationClass);
@@ -1021,6 +1022,7 @@ GridTable.prototype._addFilterToHeader = function (container, field, displayText
1021
1022
  }
1022
1023
 
1023
1024
  jQuery('<button>', {
1025
+ 'type': 'button',
1024
1026
  'data-tooltip': trans('GRID.TABLE.ADD_FILTER_HELP', field)
1025
1027
  })
1026
1028
  .addClass('wcdv_icon_button')
package/src/ui/slider.js CHANGED
@@ -61,6 +61,7 @@ Slider.prototype.draw = function (root) {
61
61
  });
62
62
  self.ui.header = jQuery('<h1>');
63
63
  self.ui.closeBtn = jQuery('<button>', {
64
+ 'type': 'button',
64
65
  'class': 'wcdv-slider-close'
65
66
  }).text('×').on('click', function () {
66
67
  self.hide();
package/src/util/misc.js CHANGED
@@ -537,6 +537,7 @@ export function setTableCell(cell, value, opts) {
537
537
  }
538
538
 
539
539
  var showValueBtn = document.createElement('button');
540
+ showValueBtn.setAttribute('type', 'button');
540
541
  showValueBtn.setAttribute('title', 'Full value has been truncated; click to show it.');
541
542
  showValueBtn.classList.add('wcdv_icon_button');
542
543
  showValueBtn.classList.add('wcdv_icon_button_incell');