1 parent
497cf925ab
commit
4cf2a673c8
2 files changed
+77
-53
No files matched your search
@@ -609,12 +609,6 @@ $(function() {
|
||||
self._markWorking(workTitle, workText);
|
||||
|
||||
var onSuccess = function(response) {
|
||||
if (response.result) {
|
||||
self._markDone();
|
||||
} else {
|
||||
self._markDone(response.reason)
|
||||
}
|
||||
self.requestData();
|
||||
self.installUrl("");
|
||||
},
|
||||
onError = function() {
|
||||
@@ -863,6 +857,16 @@ $(function() {
|
||||
return self.isCompatible(data) ? (self.installed(data) ? gettext("Reinstall") : gettext("Install")) : (data.disabled ? gettext("Disabled") : gettext("Incompatible"));
|
||||
};
|
||||
|
||||
self._processPluginManagementResult = function(response, action, plugin) {
|
||||
if (response.result) {
|
||||
self._markDone();
|
||||
} else {
|
||||
self._markDone(response.reason)
|
||||
}
|
||||
|
||||
self._displayPluginManagementNotification(response, action, plugin);
|
||||
};
|
||||
|
||||
self._displayPluginManagementNotification = function(response, action, plugin) {
|
||||
self.logContents.action.restart = self.logContents.action.restart || response.needs_restart;
|
||||
self.logContents.action.refresh = self.logContents.action.refresh || response.needs_refresh;
|
||||
@@ -1310,7 +1314,7 @@ $(function() {
|
||||
}
|
||||
}
|
||||
|
||||
self._displayPluginManagementNotification(data, action, name);
|
||||
self._processPluginManagementResult(data, action, name);
|
||||
self.requestData();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user