2018-07-04 14:06:20 +00:00
|
|
|
export default function(clickable, is) {
|
2018-10-19 15:17:02 +00:00
|
|
|
return function(obj, scope = '') {
|
|
|
|
if (scope !== '') {
|
|
|
|
scope = scope + ' ';
|
|
|
|
}
|
2018-07-04 14:06:20 +00:00
|
|
|
return {
|
|
|
|
...obj,
|
|
|
|
...{
|
2018-10-19 15:17:02 +00:00
|
|
|
submit: clickable(scope + '[type=submit]'),
|
|
|
|
submitIsEnabled: is(':not(:disabled)', scope + '[type=submit]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|