Ghost/ghost/admin/app/models
Aileen Nowak 01e52013e7 Fixes error in validation
closes #6826

- refactors the validation of facebook and twitter input field in `general.js` and `user.js` controller
	- Example validations for facebook:
		- `facebook.com/username` will be corrected to the full URL
		- `user` will show error `Your Page name is not a valid Facebook Page name' for `general.js` and `Your Username is not a valid Facebook Username` for `user.js` as the username in facebook has to be at least 5 characters long
		- `twitter.com/username` will be autocorrected to the valid facebook URL incl. the `username`
	- Example validations for twitter:
		- `twitter.com/user_` will be corrected to the full URL
                - `user:99` will show error `Your Username is not a valid Twitter Username`
                - `facebook.com/username` will be autocorrected to the valid twitter URL incl. the `username`
- updates both acceptance tests
- adds further validation for facebook pages in general settings and user. Submitting a url which incl. `/page/` or `/pages/` will now accept any username followed incl. further `/`.
- adds a custom transform `facebook-url-user` which will extract the username (if it's a facebook page, incl. `pages/`) to store only this in the backend
- uses the `twitter-url-user` transform now also for user
2016-05-17 17:44:23 +01:00
..
navigation-item.js Use a custom transform to simplify navigation settings 2016-04-26 12:32:29 +01:00
notification.js deps: ember-data@2.3.2 2016-01-19 14:36:39 +00:00
post.js Standardise client property names to camelCase 2016-01-23 19:12:22 +01:00
role.js Standardise client property names to camelCase 2016-01-23 19:12:22 +01:00
setting.js Fixes error in validation 2016-05-17 17:44:23 +01:00
slack-integration.js Slack integration 2016-05-08 12:49:15 +02:00
subscriber.js Subscribers: Admin User Interface v1 2016-05-11 10:28:11 +02:00
tag.js Standardise client property names to camelCase 2016-01-23 19:12:22 +01:00
user.js Fixes error in validation 2016-05-17 17:44:23 +01:00