jsuites 5.0.2 → 5.0.3
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/dist/jsuites.js +11 -11
- package/package.json +1 -1
package/dist/jsuites.js
CHANGED
|
@@ -6184,12 +6184,12 @@ function Dropdown() {
|
|
|
6184
6184
|
// Close button
|
|
6185
6185
|
closeButton = document.createElement('div');
|
|
6186
6186
|
closeButton.className = 'jdropdown-close';
|
|
6187
|
-
closeButton.
|
|
6187
|
+
closeButton.textContent = 'Done';
|
|
6188
6188
|
|
|
6189
6189
|
// Reset button
|
|
6190
6190
|
resetButton = document.createElement('div');
|
|
6191
6191
|
resetButton.className = 'jdropdown-reset';
|
|
6192
|
-
resetButton.
|
|
6192
|
+
resetButton.textContent = 'x';
|
|
6193
6193
|
resetButton.onclick = function () {
|
|
6194
6194
|
obj.reset();
|
|
6195
6195
|
obj.close();
|
|
@@ -6448,7 +6448,7 @@ function Dropdown() {
|
|
|
6448
6448
|
|
|
6449
6449
|
var node = document.createElement('div');
|
|
6450
6450
|
node.className = 'jdropdown-description';
|
|
6451
|
-
node.
|
|
6451
|
+
node.textContent = text || ' ';
|
|
6452
6452
|
|
|
6453
6453
|
// Title
|
|
6454
6454
|
if (data.title) {
|
|
@@ -6515,7 +6515,7 @@ function Dropdown() {
|
|
|
6515
6515
|
// Group name
|
|
6516
6516
|
var groupName = document.createElement('div');
|
|
6517
6517
|
groupName.className = 'jdropdown-group-name';
|
|
6518
|
-
groupName.
|
|
6518
|
+
groupName.textContent = groupNames[i];
|
|
6519
6519
|
// Group arrow
|
|
6520
6520
|
var groupArrow = document.createElement('i');
|
|
6521
6521
|
groupArrow.className = 'jdropdown-group-arrow jdropdown-group-arrow-down';
|
|
@@ -6561,7 +6561,7 @@ function Dropdown() {
|
|
|
6561
6561
|
resetValue();
|
|
6562
6562
|
|
|
6563
6563
|
// Make sure the content container is blank
|
|
6564
|
-
content.
|
|
6564
|
+
content.textContent = '';
|
|
6565
6565
|
|
|
6566
6566
|
// Reset
|
|
6567
6567
|
obj.header.value = '';
|
|
@@ -6778,12 +6778,12 @@ function Dropdown() {
|
|
|
6778
6778
|
// Remove nodes from all groups
|
|
6779
6779
|
if (obj.groups.length) {
|
|
6780
6780
|
for (var i = 0; i < obj.groups.length; i++) {
|
|
6781
|
-
obj.groups[i].lastChild.
|
|
6781
|
+
obj.groups[i].lastChild.textContent = '';
|
|
6782
6782
|
}
|
|
6783
6783
|
}
|
|
6784
6784
|
|
|
6785
6785
|
// Remove all nodes
|
|
6786
|
-
content.
|
|
6786
|
+
content.textContent = '';
|
|
6787
6787
|
|
|
6788
6788
|
// Remove current items in the remote search
|
|
6789
6789
|
if (obj.options.remoteSearch == true) {
|
|
@@ -7190,7 +7190,7 @@ function Dropdown() {
|
|
|
7190
7190
|
}
|
|
7191
7191
|
|
|
7192
7192
|
// Reset container
|
|
7193
|
-
content.
|
|
7193
|
+
content.textContent = '';
|
|
7194
7194
|
|
|
7195
7195
|
// First 200 items
|
|
7196
7196
|
for (var i = 0; i < number; i++) {
|
|
@@ -7224,7 +7224,7 @@ function Dropdown() {
|
|
|
7224
7224
|
number = number - 200;
|
|
7225
7225
|
|
|
7226
7226
|
// Reset container
|
|
7227
|
-
content.
|
|
7227
|
+
content.textContent = '';
|
|
7228
7228
|
|
|
7229
7229
|
// First 200 items
|
|
7230
7230
|
for (var i = number; i < results.length; i++) {
|
|
@@ -7479,14 +7479,14 @@ function Dropdown() {
|
|
|
7479
7479
|
for (var i = 0; i < el.children[j].children.length; i++) {
|
|
7480
7480
|
options.data.push({
|
|
7481
7481
|
value: el.children[j].children[i].value,
|
|
7482
|
-
text: el.children[j].children[i].
|
|
7482
|
+
text: el.children[j].children[i].textContent,
|
|
7483
7483
|
group: el.children[j].getAttribute('label'),
|
|
7484
7484
|
});
|
|
7485
7485
|
}
|
|
7486
7486
|
} else {
|
|
7487
7487
|
options.data.push({
|
|
7488
7488
|
value: el.children[j].value,
|
|
7489
|
-
text: el.children[j].
|
|
7489
|
+
text: el.children[j].textContent,
|
|
7490
7490
|
});
|
|
7491
7491
|
}
|
|
7492
7492
|
}
|
package/package.json
CHANGED