mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-10-03 18:00:43 -04:00
fixes various UI issues
This commit is contained in:
1 parent
3c709b1329
commit
8e34eb627c
4 files changed
+12
-12
No files matched your search
@@ -74,7 +74,7 @@ window.initStopwatch = function(config){
|
||||
$('a.stopwatch_issue_timer').each(function(){
|
||||
var a = $(this);
|
||||
a.attr('href', a.attr('href').replace(/stop$/, 'start'));
|
||||
a.text(locales.startTimer);
|
||||
a.find('span').text(locales.startTimer);
|
||||
});
|
||||
},
|
||||
timerStarted: function(data){
|
||||
@@ -94,10 +94,10 @@ window.initStopwatch = function(config){
|
||||
if(data.issue_id) {
|
||||
if(a.data('issueId') == data.issue_id) {
|
||||
a.attr('href', href.replace(/start$/, 'stop'));
|
||||
a.text(locales.stopTimer);
|
||||
a.find('span').text(locales.stopTimer);
|
||||
} else {
|
||||
a.attr('href', href.replace(/stop$/, 'start'));
|
||||
a.text(locales.startTimer);
|
||||
a.find('span').text(locales.startTimer);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user