Skip to content

Instantly share code, notes, and snippets.

@natecavanaugh
Created October 4, 2011 00:29
Show Gist options
  • Save natecavanaugh/1260623 to your computer and use it in GitHub Desktop.
Save natecavanaugh/1260623 to your computer and use it in GitHub Desktop.
Possible method for handling Liferay's namespaced form elements
Liferay.Form.bind = function(ns, fm) {
var form = document[ns + (fm || 'fm')], formNode = A.one(form);
return function(id) {
return id ? A.one(form[ns + id]) : formNode;
};
};
fm = Liferay.Form.bind('_174_');
fm('toggle_id_users_admin_user_searchkeywords')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment