diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2013-10-16 20:09:40 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2013-10-16 20:09:40 +0200 |
commit | 8d417057d38d56510a1d3d2e39381a1df3dd96ee (patch) | |
tree | 26e2d71409bdb10a5fefad1b538af583e984b776 /id/ConfigWebTool/src/main/webapp/js/common.js | |
parent | a7c22b659f5bc760cb46d5892409dab12cc047d6 (diff) | |
download | moa-id-spss-8d417057d38d56510a1d3d2e39381a1df3dd96ee.tar.gz moa-id-spss-8d417057d38d56510a1d3d2e39381a1df3dd96ee.tar.bz2 moa-id-spss-8d417057d38d56510a1d3d2e39381a1df3dd96ee.zip |
@ConfigWebTool
--add JS ColorPicker to select colors easier
--add BKUSelectionFrom preview
--add useMandate checkbox
--change position of some checkboxes in OA configuration
@MOAID lib
--change API of BKUFormCustomization utils
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js/common.js')
-rw-r--r-- | id/ConfigWebTool/src/main/webapp/js/common.js | 19 |
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 |