Feature #67: Advanced document template events
OnGenerated and OnImportAttachment allow advanced users to enter expressions which will be evaluated whenever these document template/importing events are triggered. This enables greater automation.
This commit is contained in:
@@ -61,7 +61,9 @@ if (!document.DiscoFunctions.PropertyChangeHelper) {
|
||||
if (PropertyField[0].nodeName.toLowerCase() == 'textarea') {
|
||||
PropertyField.keydown(function () {
|
||||
$ajaxSave.show();
|
||||
})
|
||||
}).blur(function () {
|
||||
$ajaxSave.hide();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-1
@@ -60,7 +60,9 @@ if (!document.DiscoFunctions.PropertyChangeHelper) {
|
||||
if (PropertyField[0].nodeName.toLowerCase() == 'textarea') {
|
||||
PropertyField.keydown(function () {
|
||||
$ajaxSave.show();
|
||||
})
|
||||
}).blur(function () {
|
||||
$ajaxSave.hide();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -287,8 +287,12 @@ table.deviceProfileTable th.type {
|
||||
table.deviceProfileTable th.deviceCount {
|
||||
width: 120px;
|
||||
}
|
||||
#configurationDeviceProfileShow #ComputerNameTemplate {
|
||||
width: 300px;
|
||||
#configurationDeviceProfileShow #DeviceProfile_ComputerNameTemplate {
|
||||
height: 16px;
|
||||
min-height: 16px;
|
||||
width: calc(100% - 32px);
|
||||
overflow: hidden;
|
||||
font-family: Consolas, "Courier New", monospace;
|
||||
}
|
||||
#configurationDeviceProfileShow #expressionBrowserAnchor {
|
||||
display: inline-block;
|
||||
@@ -622,6 +626,14 @@ div.logEventsViewport table.logEventsViewport > tbody > tr > td.eventType {
|
||||
#Config_DocumentTemplates_Show > div.form > table > tbody > tr > th {
|
||||
width: 140px;
|
||||
}
|
||||
#Config_DocumentTemplates_Show #DocumentTemplate_FilterExpression,
|
||||
#Config_DocumentTemplates_Show #DocumentTemplate_OnGenerateExpression,
|
||||
#Config_DocumentTemplates_Show #DocumentTemplate_OnImportAttachmentExpression {
|
||||
height: 16px;
|
||||
min-height: 16px;
|
||||
overflow: hidden;
|
||||
font-family: Consolas, "Courier New", monospace;
|
||||
}
|
||||
#Config_DocumentTemplates_Show #Config_DocumentTemplates_Scope_Button {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
@@ -228,8 +228,12 @@ table.deviceProfileTable {
|
||||
}
|
||||
|
||||
#configurationDeviceProfileShow {
|
||||
#ComputerNameTemplate {
|
||||
width: 300px;
|
||||
#DeviceProfile_ComputerNameTemplate {
|
||||
height: 16px;
|
||||
min-height: 16px;
|
||||
width: calc(~"100% - 32px");
|
||||
overflow: hidden;
|
||||
font-family: @FontFamilyMono;
|
||||
}
|
||||
|
||||
#expressionBrowserAnchor {
|
||||
@@ -656,6 +660,13 @@ div.logEventsViewport {
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
#DocumentTemplate_FilterExpression, #DocumentTemplate_OnGenerateExpression, #DocumentTemplate_OnImportAttachmentExpression {
|
||||
height: 16px;
|
||||
min-height: 16px;
|
||||
overflow: hidden;
|
||||
font-family: @FontFamilyMono;
|
||||
}
|
||||
|
||||
#Config_DocumentTemplates_Scope_Button {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user