peteshow 0.8.3 → 0.8.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.
- data/dist/peteshow.js +8 -5
- data/dist/peteshow.min.js +2 -2
- data/lib/assets/javascripts/peteshow.js +8 -5
- data/lib/assets/javascripts/peteshow.min.js +2 -2
- data/package.json +1 -1
- data/src/peteshow-core.js +8 -5
- data/tests/playground.html +141 -0
- metadata +2 -2
data/dist/peteshow.js
CHANGED
@@ -1288,15 +1288,15 @@ window.Peteshow = Peteshow;
|
|
1288
1288
|
};
|
1289
1289
|
|
1290
1290
|
Peteshow.fillOutForms = function() {
|
1291
|
-
// select
|
1292
|
-
$('select').each(randomSelectValue)
|
1293
|
-
|
1294
1291
|
// checkbox
|
1295
1292
|
$('input[type=checkbox]').prop('checked', true)
|
1296
1293
|
|
1297
1294
|
// radio button
|
1298
1295
|
randomRadioValue()
|
1299
1296
|
|
1297
|
+
// select
|
1298
|
+
$('select').each(randomSelectValue)
|
1299
|
+
|
1300
1300
|
// force rules
|
1301
1301
|
$.each(_options.force, function(element,v) {
|
1302
1302
|
$(element)
|
@@ -1429,7 +1429,8 @@ window.Peteshow = Peteshow;
|
|
1429
1429
|
|
1430
1430
|
$(select)
|
1431
1431
|
.filter(function() { return _options.ignore.indexOf(this.id) === -1 })
|
1432
|
-
.val(filtered[random])
|
1432
|
+
.val(filtered[random])
|
1433
|
+
.change()
|
1433
1434
|
}
|
1434
1435
|
|
1435
1436
|
randomRadioValue = function() {
|
@@ -1444,9 +1445,11 @@ window.Peteshow = Peteshow;
|
|
1444
1445
|
|
1445
1446
|
$(radios[Math.floor(Math.random() * radios.length)])
|
1446
1447
|
.filter(function() { return _options.ignore.indexOf(this.id) === -1 })
|
1447
|
-
.prop('checked', true)
|
1448
|
+
.prop('checked', true)
|
1449
|
+
.change()
|
1448
1450
|
})
|
1449
1451
|
}
|
1450
1452
|
|
1451
1453
|
$(document).keydown(handleKeypress);
|
1452
1454
|
}(jQuery)
|
1455
|
+
|