Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
20200410 - fixing #110
Browse files Browse the repository at this point in the history
  • Loading branch information
yafp committed Apr 10, 2020
1 parent a514471 commit 04f3e75
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/js/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,10 +1085,6 @@ function windowMainDisablePowerSaveBlocker () {
*/
function toDoListSingleUrlRemove (url) {
// remove url from array

console.warn(url)
console.error(arrayUserUrlsN)

const index = arrayUserUrlsN.indexOf(url)
if (index > -1) {
arrayUserUrlsN.splice(index, 1)
Expand Down Expand Up @@ -1204,6 +1200,19 @@ function imagePreviewModalShow (url) {
$('#myModalImagePreview').modal('show') // show the modal
}


function dataTablesReset() {
var table = $('#example').DataTable()

table
.clear()
.draw();

// reset the array
arrayUserUrlsN = []
}


// ----------------------------------------------------------------------------
// EXPORT THE MODULE FUNCTIONS
// ----------------------------------------------------------------------------
Expand Down Expand Up @@ -1243,3 +1252,4 @@ module.exports.windowMainDisablePowerSaveBlocker = windowMainDisablePowerSaveBlo
module.exports.toDoListSingleUrlRemove = toDoListSingleUrlRemove // #102
module.exports.toDoListSingleUrlAdd = toDoListSingleUrlAdd // #102
module.exports.imagePreviewModalShow = imagePreviewModalShow
module.exports.dataTablesReset = dataTablesReset
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ The following categories are used:
* Dependencies
* Updated ```electron``` from ```8.2.0``` to ```8.2.1```
* Updated ```jsdoc``` from ```3.6.3``` to ```3.6.4```
* Updated ```jquery``` from ```3.4.1``` to ```3.5.0```


#### ```Removed```
Expand All @@ -67,6 +68,7 @@ The following categories are used:

#### ```Fixed```
* Fixed an error in todo-list saving and restoring. See [#105](https://github.com/yafp/media-dupes/issues/105)
* Fixed an error in todo-list cleanup. See [#110](https://github.com/yafp/media-dupes/issues/110)


***
Expand Down

0 comments on commit 04f3e75

Please sign in to comment.