aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/webapp/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js/common.js')
-rw-r--r--id/ConfigWebTool/src/main/webapp/js/common.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/webapp/js/common.js b/id/ConfigWebTool/src/main/webapp/js/common.js
index d32350ce1..305e4d1ee 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -53,6 +53,7 @@ function oaFormCustom() {
$('#formcustom_area').css('display', "block");
$('#formcustom_button_show').css('display', "none");
$('#formcustom_button_hidden').css('display', "block");
+ $("#formCustomPreview>iframe").attr("src", "./bkuFramePreview.action");
}
}
function editOA(oaid){
@@ -135,6 +136,11 @@ function sendVerificationMail() {
},
});
}
+function updateBKUFormPreview(module) {
+ var value = $("#"+module).val();
+
+ $("#formCustomPreview>iframe").attr("src", "./bkuFramePreview.action?module="+module+"&value="+value.replace("#",""));
+}
function userOnLoad() {
UseUserNamePassword();
return true;
@@ -145,5 +151,18 @@ function oaOnLoad() {
oaLegacyService();
AdminTarget();
oaTargetSubSector();
+
+ $(".colorfield").each(
+ function() {
+ $(this).ColorPicker({
+ color : $(this).val(),
+ onSubmit : function(hsb, hex, rgb, el) {
+ $(el).val(hex);
+ updateBKUFormPreview($(el).attr("id"));
+ }
+ });
+ }
+ );
+
return true;
} \ No newline at end of file