studio.js 833 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) UNA, Inc - https://una.io
  3. * MIT License - https://opensource.org/licenses/MIT
  4. *
  5. * @defgroup Forum Forum
  6. * @ingroup UnaModules
  7. *
  8. * @{
  9. */
  10. function BxForumStudio(oOptions) {
  11. this._sActionsUrl = oOptions.sActionUrl;
  12. this._sObjName = oOptions.sObjName == undefined ? 'oFormStudio' : oOptions.sObjName;
  13. this._sAnimationEffect = oOptions.sAnimationEffect == undefined ? 'fade' : oOptions.sAnimationEffect;
  14. this._iAnimationSpeed = oOptions.iAnimationSpeed == undefined ? 'slow' : oOptions.iAnimationSpeed;
  15. }
  16. BxForumStudio.prototype.onChangeVisibleFor = function(oSelect) {
  17. $('#bx-form-element-visible_for_levels').bx_anim($(oSelect).val() == 'all' ? 'hide' : 'show', this.sAnimationEffect, this.iAnimationSpeed, function() {
  18. $('.bx-popup-applied:visible')._dolPopupSetPosition();
  19. });
  20. };