Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/Notifications.qml
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 83 | if (id.indexOf("jobUrl#") === -1) { | |||
---|---|---|---|---|---|
84 | var service = notificationsSource.serviceForSource(source) | 84 | var service = notificationsSource.serviceForSource(source) | ||
85 | var op = service.operationDescription("invokeAction") | 85 | var op = service.operationDescription("invokeAction") | ||
86 | op["actionId"] = id | 86 | op["actionId"] = id | ||
87 | 87 | | |||
88 | service.startOperationCall(op) | 88 | service.startOperationCall(op) | ||
89 | //try to open the id as url | 89 | //try to open the id as url | ||
90 | } else if (id.indexOf("jobUrl#") !== -1) { | 90 | } else if (id.indexOf("jobUrl#") !== -1) { | ||
91 | Qt.openUrlExternally(id.slice(7)); | 91 | Qt.openUrlExternally(id.slice(7)); | ||
92 | notificationPositioner.closePopup(source); | | |||
93 | } | 92 | } | ||
93 | | ||||
94 | notificationPositioner.closePopup(source); | ||||
94 | } | 95 | } | ||
95 | 96 | | |||
96 | function configureNotification(appRealName, eventId) { | 97 | function configureNotification(appRealName, eventId) { | ||
97 | var service = notificationsSource.serviceForSource("notification") | 98 | var service = notificationsSource.serviceForSource("notification") | ||
98 | var op = service.operationDescription("configureNotification") | 99 | var op = service.operationDescription("configureNotification") | ||
99 | op.appRealName = appRealName | 100 | op.appRealName = appRealName | ||
100 | op.eventId = eventId | 101 | op.eventId = eventId | ||
101 | service.startOperationCall(op) | 102 | service.startOperationCall(op) | ||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |