2016-01-11 02:25:30 +01:00
|
|
|
(function (global, factory) {
|
2016-07-25 07:24:26 +02:00
|
|
|
if (typeof define === "function" && define.amd) {
|
|
|
|
define('ss.MemberDatetimeOptionsetField', ['jQuery'], factory);
|
|
|
|
} else if (typeof exports !== "undefined") {
|
|
|
|
factory(require('jQuery'));
|
|
|
|
} else {
|
|
|
|
var mod = {
|
|
|
|
exports: {}
|
|
|
|
};
|
|
|
|
factory(global.jQuery);
|
|
|
|
global.ssMemberDatetimeOptionsetField = mod.exports;
|
|
|
|
}
|
2016-01-11 02:25:30 +01:00
|
|
|
})(this, function (_jQuery) {
|
2016-07-25 07:24:26 +02:00
|
|
|
'use strict';
|
2016-02-12 04:00:15 +01:00
|
|
|
|
2016-07-25 07:24:26 +02:00
|
|
|
var _jQuery2 = _interopRequireDefault(_jQuery);
|
2016-01-11 02:25:30 +01:00
|
|
|
|
2016-07-25 07:24:26 +02:00
|
|
|
function _interopRequireDefault(obj) {
|
|
|
|
return obj && obj.__esModule ? obj : {
|
|
|
|
default: obj
|
|
|
|
};
|
|
|
|
}
|
2016-01-11 02:25:30 +01:00
|
|
|
|
2016-07-25 07:24:26 +02:00
|
|
|
_jQuery2.default.entwine('ss', function ($) {
|
2016-03-04 04:40:54 +01:00
|
|
|
|
2016-07-25 07:24:26 +02:00
|
|
|
$('.memberdatetimeoptionset').entwine({
|
|
|
|
onmatch: function onmatch() {
|
|
|
|
this.find('.toggle-content').hide();
|
|
|
|
this._super();
|
|
|
|
}
|
|
|
|
});
|
2016-03-04 04:40:54 +01:00
|
|
|
|
2016-07-25 07:24:26 +02:00
|
|
|
$('.memberdatetimeoptionset .toggle').entwine({
|
|
|
|
onclick: function onclick(e) {
|
|
|
|
jQuery(this).closest('.description').parent().find('.toggle-content').toggle();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2016-01-11 02:25:30 +01:00
|
|
|
});
|