Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #222 - "Reset failed jobs" button #235

Closed
wants to merge 2 commits into from
Closed

Issue #222 - "Reset failed jobs" button #235

wants to merge 2 commits into from

Conversation

bmcmurray
Copy link

Abstract out reset job function in jobs.js. Add action bar above and below run table.

in jobs.js. Add action bar above and below run table.
resetJob($(this).parent('td'));
});

$( document ).on ( 'click' , '.swarm-job-reset-failed', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • (unexpected space in between function name and invocation parentheses)
  • (unexpected space before comma)

@bmcmurray
Copy link
Author

Cleaned up the code formatting.

if ( $request->getSessionData( "auth" ) === "yes" && $data["jobInfo"]["ownerName"] == $request->getSessionData( "username" ) ) {
$html .= '<script>SWARM.jobInfo = ' . json_encode( $data["jobInfo"] ) . ';</script>';
$action_bar = '<div class="form-actions swarm-item-actions">'
. ' <button class="swarm-job-reset-failed btn btn-info">Reset Failed jobs</button>'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use sentence case ("Reset failed jobs") like the others.

@Krinkle Krinkle closed this in ee8dc59 Nov 1, 2012
patrickkettner added a commit to patrickkettner/testswarm that referenced this pull request Nov 5, 2012
Abstract out reset job function in jobs.js.
Add action bar above and below run table.

Add an icon to each cell to allow for an individual runs to be
reset (replacing the old dblclick logic).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants