Skip to content

Commit

Permalink
TRUNK-4003 resolved the privious formatter issues and removed some un…
Browse files Browse the repository at this point in the history
… nuccessary code
  • Loading branch information
k-joseph committed Dec 11, 2013
1 parent f755417 commit 2a7e253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Expand Up @@ -127,13 +127,13 @@ public boolean createAlert(String text) {
/**
* Marks all alert as read
*/
public void markAllAlertsRead() {
AlertService as = Context.getAlertService();
// Get the alert objects
List<Alert> alerts = as.getAlertsByUser(Context.getAuthenticatedUser());
for (Alert alert : alerts) {
markAlertRead(alert.getId());
}
}
public void markAllAlertsRead() {
AlertService as = Context.getAlertService();
// Get the alert objects
List<Alert> alerts = as.getAlertsByUser(Context.getAuthenticatedUser());
for (Alert alert : alerts) {
markAlertRead(alert.getId());
}
}
}
4 changes: 0 additions & 4 deletions webapp/src/main/webapp/openmrs.js
Expand Up @@ -24,10 +24,6 @@ function markAllAlertsRead(self) {
var parent = self.parentNode;
parent = parent.parentNode;
parent.style.display = "none";
var unreadAlertSize = parseInt(unreadAlertSizeBox.innerHTML);
unreadAlertSize = 0;
var unreadAlertSizeBox = document.getElementById('unreadAlertSize');
unreadAlertSizeBox = unreadAlertSize;
}

function addClass(obj, c) {
Expand Down

0 comments on commit 2a7e253

Please sign in to comment.