edit.js 740 B

1234567891011121314151617181920212223242526272829
  1. $(function()
  2. {
  3. $('#tips a').click(function()
  4. {
  5. $.getJSON(createLink('workflowcondition', 'know'), function(response)
  6. {
  7. if(response.result == 'success') $('#tips').remove();
  8. if(response.result == 'fail') bootbox.alert(response.message);
  9. });
  10. return false;
  11. });
  12. $.setAjaxForm('#editConditionForm', function(response)
  13. {
  14. if(response.result == 'success')
  15. {
  16. setTimeout(function()
  17. {
  18. $('#triggerModal').load(response.locate, function()
  19. {
  20. $.zui.ajustModalPosition();
  21. });
  22. }, 1200);
  23. }
  24. });
  25. $('#conditionTable #conditionType').change();
  26. })