';
document.querySelector('#copytext').value = textContent;
modal.showModal();
});
// Modal close functionality
const modal = document.querySelector('.republish-modal');
const closeBtn = document.querySelector('.republish-modal-close');
// Close button click
closeBtn.addEventListener('click', function() {
modal.close();
});
// Close on backdrop click
modal.addEventListener('click', function(e) {
if (e.target === modal) {
modal.close();
}
});
// Close on ESC key (this is usually built-in, but adding for safety)
modal.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
modal.close();
}
});
// Copy text button functionality
document.querySelector('.copy-text-button').addEventListener('click', async function() {
const textarea = document.querySelector('#copytext');
const text = textarea.value;
try {
// Try modern Clipboard API first
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(text);
this.textContent = 'Copied!';
} else {
// Fallback for older browsers
textarea.select();
document.execCommand('copy');
this.textContent = 'Copied!';
}
// Reset button text after 2 seconds
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
} catch (err) {
console.error('Failed to copy text: ', err);
// Fallback to selection if copying fails
textarea.select();
this.textContent = 'Text selected';
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
}
});
});
In late August, InvestigateWest brought readers a High Country News story that found that some 50,000 West Coast dairy farmers were facing increasing exploitation as one of the least protected workers in the nation. Now, as more Northwest dairy workers have pushed for unionization in recent months, employees of an Eastern Washington farm are saying they've been fired because of it.
Associated Press reporters Shannon Dininny and Manuel Valdes write that nine co-workers have filed suit against Ruby Ridge Dairy with the aid of the nation's biggest farm worker union, United Farm Workers of America (UFW). They argue they were let go because of their affiliation with the union. The owners of the farms have disputed that charge.
The northwest's dairy workers have long lacked the basic labor laws extended by the 1935 National Labor Relations Act and found in just about every other industry, including the legal right to form a union, right to overtime pay, and protection from workplace discrimination.
The farmworkers' union has seen its membership numbers skyrocket in the Northwest, and the group's most recent organization of 250 workers at an Oregon dairy farm marked the first unionized agricultural operation in Oregon. The union's efforts have caught the attention of the Washington State Farm Bureau, which has issued new guidelines to farmers with instructions in the event their workers decide to unionize.
The local Tri-City Herald also briefly covered the story, reporting that the Oregon Farm Worker Ministry has decided to hand out $390 checks to each of the fired workers in a display of support.
-- Natasha Walker