Skip to content

Commit

Permalink
Merge pull request #374 from csharpfritz/fix_MergeJs
Browse files Browse the repository at this point in the history
  • Loading branch information
csharpfritz committed Feb 19, 2024
2 parents 92e5e82 + ca3dba2 commit f137817
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/TagzApp.Blazor/wwwroot/js/waterfall.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@
FixEmbedImage: function (img) {
var theArticle = img.closest('[data-provider]');

if (theArticle == null) return;

if (
theArticle.dataset.provider == 'TWITTER' &&
!img.src.toString().includes('d.fxtwitter.com')
Expand Down Expand Up @@ -305,17 +307,6 @@
`[data-providerid='${cursorProviderId}']`,
);

// Approve the current message
let approveFunc = function () {
connection.invoke(
'SetStatus',
thisCard.getAttribute('data-provider'),
thisCard.getAttribute('data-providerid'),
ModerationState.Approved,
);
thisCard.classList.remove('status-rejected');
thisCard.classList.add('status-approved');
};
// Approve the current message
let approveFunc = function () {
connection.invoke(
Expand Down Expand Up @@ -347,9 +338,6 @@
} else {
if (document.querySelector('.active_panel') == null) return;

let rejectCard = document.querySelector(
`[data-providerid='${cursorProviderId}']`,
);
let rejectCard = document.querySelector(
`[data-providerid='${cursorProviderId}']`,
);
Expand All @@ -371,17 +359,10 @@
};
},

PauseNewContent: function (duration) {
PauseNewContentForDuration(duration);
},
PauseNewContent: function (duration) {
PauseNewContentForDuration(duration);
},

SetPauseState: function (paused) {
isPaused = paused;
rollOverPause = false;
},
SetPauseState: function (paused) {
isPaused = paused;
rollOverPause = false;
Expand Down

0 comments on commit f137817

Please sign in to comment.