diff --git a/app/assets/javascripts/assignments.js b/app/assets/javascripts/assignments.js
index 4eeacefd0..71c24301e 100644
--- a/app/assets/javascripts/assignments.js
+++ b/app/assets/javascripts/assignments.js
@@ -25,7 +25,14 @@ $(document).ready(function() {
klass = 'btn-success';
break;
}
- $div.html('' + actions_map[mid].action + '')
+ var link = $('', {
+ 'href': actions_map[mid].url,
+ 'class': 'btn ' + klass,
+ 'text': actions_map[mid].action
+ }).appendTo($div);
+ if ( actions_map[mid].action == 'Attempt' ){
+ link.attr('data-disable-with', 'Attempting...');
+ }
}
var $title = $("#title-"+mid);
if ($title.length > 0) {
@@ -61,4 +68,4 @@ $(document).ready(function() {
console.log(e);
}
}
-});
\ No newline at end of file
+});