Advertisement
Guest User

Untitled

a guest
May 14th, 2012
4,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. doSetupFormsValidation:
  2. {
  3. fn: function getLatestDoc_doSetupForm_callback(form)
  4. {
  5. form.addValidation(this.configDialog.id + "-title", Alfresco.forms.validation.mandatory, null, "keyup");
  6. form.setShowSubmitStateDynamically(true, false);
  7. Dom.get(this.configDialog.id + "-title").value = this.options.title;
  8. Dom.get(this.configDialog.id + "-filterPath").value = this.options.filterPath;
  9. Dom.get(this.configDialog.id + "-filterPathView").innerHTML = this.options.filterPath.substr(this.options.filterPath.indexOf("|") + 1);
  10. this.configDialog.widgets.filterPathView = Dom.get(this.configDialog.id + "-filterPathView"); // Path
  11. this.configDialog.widgets.filterPathField = Dom.get(this.configDialog.id + "-filterPath"); // NodeRef|Path
  12. this.configDialog.widgets.selectFilterPathButton = Alfresco.util.createYUIButton(this.configDialog, "selectFilterPath-button", this.onSelectFilterPath);
  13. this.configDialog.widgets.clearFilterPathButton = Alfresco.util.createYUIButton(this.configDialog, "clearFilterPath-button", this.onClearFilterPath);
  14. },
  15. scope: this
  16. }
  17. });
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement