Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions hadoop-mapreduce-project/src/webapps/static/jobtracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
* limitations under the License.
*/

function checkButtonVerbage()
const :[fn~\w+] = () =>
{
var inputs = document.getElementsByName("jobCheckBox");
var check = getCheckStatus(inputs);

setCheckButtonVerbage(! check);
}

function selectAll()
const :[fn~\w+] = () =>
{
var inputs = document.getElementsByName("jobCheckBox");
var check = getCheckStatus(inputs);
Expand All @@ -39,7 +39,7 @@ function selectAll()
setCheckButtonVerbage(check);
}

function getCheckStatus(inputs)
const :[fn~\w+] = (inputs) =>
{
var check = true;

Expand All @@ -55,13 +55,13 @@ function getCheckStatus(inputs)
}


function setCheckButtonVerbage(check)
const :[fn~\w+] = (check) =>
{
var op = document.getElementById("checkEm");
op.value = check ? "Select All" : "Deselect All";
}

function applyfilter()
const :[fn~\w+] = () =>
{
var cols = ["job","priority","user","name"];
var nodes = [];
Expand Down Expand Up @@ -102,7 +102,7 @@ function applyfilter()
} // while
}

function getDisplayStatus(nodes, filter, cols)
const :[fn~\w+] = (nodes, filter, cols) =>
{
var offset = filter.indexOf(':');

Expand All @@ -125,22 +125,22 @@ function getDisplayStatus(nodes, filter, cols)
return false;
}

function stripHtml(text)
const :[fn~\w+] = (text) =>
{
return text.replace(/<[^>]*>/g,'').replace(/&[^;]*;/g,'');
}

function containsIgnoreCase(haystack, needle)
const :[fn~\w+] = (haystack, needle) =>
{
return haystack.toLowerCase().indexOf(needle.toLowerCase()) != -1;
}

function confirmAction()
const :[fn~\w+] = () =>
{
return confirm("Are you sure?");
}

function toggle(id)
const :[fn~\w+] = (id) =>
{
if ( document.getElementById(id).style.display != 'block') {
document.getElementById(id).style.display = 'block';
Expand Down