-
Notifications
You must be signed in to change notification settings - Fork 87
/
updatepluginbundle.html
36 lines (32 loc) · 1.05 KB
/
updatepluginbundle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="updatepluginbundle">
<h3>Update Plugin Bundle <a class="helpBtn" title="Help"><span class="glyphicon glyphicon-question-sign"></span></a></h3>
<div class="alert alert-success ih">
Plugin bundle successfully updated, <a class="btnBack">Back to installed plugins</a>
</div>
<div class="panel panel-default helpDiv ih">
<div class="panel-body">
</div>
</div>
</div>
<script>
function UpdatePluginBundle(cd, serverSettings, pluginBundle, pluginBundleVersion) {
var o = this;
this.show = function(){};
this.hide = function(){};
cd.find(".helpBtn").click(function(){
cd.find(".helpDiv").toggle();
});
cd.find(".btnBack").click(function(){
serverSettings.showInstalledPluginBundles();
});
Global.bimServerApi.callWithFullIndication("PluginInterface", "updatePluginBundle", {
repository: pluginBundleVersion.repository,
groupId: pluginBundleVersion.groupId,
artifactId: pluginBundleVersion.artifactId,
version: pluginBundleVersion.version
}, function(){
cd.find(".alert-success").show();
window.scrollTo(0, 0);
});
}
</script>