diff --git a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-coverage.js b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-coverage.js
index f692a10..1c95d61 100644
--- a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-coverage.js
+++ b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-coverage.js
@@ -1,6 +1,6 @@
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/moodle-availability_examus-form/moodle-availability_examus-form.js']) {
- __coverage__['build/moodle-availability_examus-form/moodle-availability_examus-form.js'] = {"path":"build/moodle-availability_examus-form/moodle-availability_examus-form.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":62}}},"2":{"name":"(anonymous_2)","line":13,"loc":{"start":{"line":13,"column":39},"end":{"line":13,"column":50}}},"3":{"name":"(anonymous_3)","line":19,"loc":{"start":{"line":19,"column":37},"end":{"line":19,"column":52}}},"4":{"name":"(anonymous_4)","line":51,"loc":{"start":{"line":51,"column":37},"end":{"line":51,"column":48}}},"5":{"name":"(anonymous_5)","line":54,"loc":{"start":{"line":54,"column":37},"end":{"line":54,"column":48}}},"6":{"name":"(anonymous_6)","line":62,"loc":{"start":{"line":62,"column":39},"end":{"line":62,"column":61}}},"7":{"name":"(anonymous_7)","line":67,"loc":{"start":{"line":67,"column":40},"end":{"line":67,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":75,"column":90}},"2":{"start":{"line":9,"column":0},"end":{"line":9,"column":52}},"3":{"start":{"line":11,"column":0},"end":{"line":11,"column":66}},"4":{"start":{"line":13,"column":0},"end":{"line":15,"column":2}},"5":{"start":{"line":17,"column":0},"end":{"line":17,"column":38}},"6":{"start":{"line":19,"column":0},"end":{"line":60,"column":2}},"7":{"start":{"line":20,"column":4},"end":{"line":20,"column":46}},"8":{"start":{"line":21,"column":4},"end":{"line":21,"column":40}},"9":{"start":{"line":23,"column":4},"end":{"line":23,"column":54}},"10":{"start":{"line":24,"column":4},"end":{"line":24,"column":43}},"11":{"start":{"line":26,"column":4},"end":{"line":26,"column":56}},"12":{"start":{"line":28,"column":4},"end":{"line":28,"column":71}},"13":{"start":{"line":29,"column":4},"end":{"line":29,"column":66}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":58}},"15":{"start":{"line":32,"column":4},"end":{"line":32,"column":75}},"16":{"start":{"line":33,"column":4},"end":{"line":33,"column":55}},"17":{"start":{"line":34,"column":4},"end":{"line":34,"column":76}},"18":{"start":{"line":35,"column":4},"end":{"line":35,"column":92}},"19":{"start":{"line":36,"column":4},"end":{"line":36,"column":80}},"20":{"start":{"line":37,"column":4},"end":{"line":37,"column":24}},"21":{"start":{"line":39,"column":4},"end":{"line":39,"column":56}},"22":{"start":{"line":40,"column":4},"end":{"line":42,"column":5}},"23":{"start":{"line":41,"column":8},"end":{"line":41,"column":69}},"24":{"start":{"line":44,"column":4},"end":{"line":46,"column":5}},"25":{"start":{"line":45,"column":8},"end":{"line":45,"column":98}},"26":{"start":{"line":48,"column":4},"end":{"line":57,"column":5}},"27":{"start":{"line":49,"column":8},"end":{"line":49,"column":54}},"28":{"start":{"line":50,"column":8},"end":{"line":50,"column":44}},"29":{"start":{"line":51,"column":8},"end":{"line":53,"column":56}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":46}},"31":{"start":{"line":54,"column":8},"end":{"line":56,"column":53}},"32":{"start":{"line":55,"column":12},"end":{"line":55,"column":46}},"33":{"start":{"line":59,"column":4},"end":{"line":59,"column":16}},"34":{"start":{"line":62,"column":0},"end":{"line":65,"column":2}},"35":{"start":{"line":63,"column":4},"end":{"line":63,"column":74}},"36":{"start":{"line":64,"column":4},"end":{"line":64,"column":67}},"37":{"start":{"line":67,"column":0},"end":{"line":73,"column":2}},"38":{"start":{"line":68,"column":4},"end":{"line":68,"column":19}},"39":{"start":{"line":69,"column":4},"end":{"line":69,"column":32}},"40":{"start":{"line":70,"column":4},"end":{"line":72,"column":5}},"41":{"start":{"line":71,"column":8},"end":{"line":71,"column":61}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":24},"end":{"line":9,"column":45}},{"start":{"line":9,"column":49},"end":{"line":9,"column":51}}]},"2":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":4},"end":{"line":40,"column":4}},{"start":{"line":40,"column":4},"end":{"line":40,"column":4}}]},"3":{"line":44,"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":44,"column":4}},{"start":{"line":44,"column":4},"end":{"line":44,"column":4}}]},"4":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":4},"end":{"line":48,"column":4}},{"start":{"line":48,"column":4},"end":{"line":48,"column":4}}]},"5":{"line":70,"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":70,"column":4}},{"start":{"line":70,"column":4},"end":{"line":70,"column":4}}]},"6":{"line":70,"type":"binary-expr","locations":[{"start":{"line":70,"column":8},"end":{"line":70,"column":36}},{"start":{"line":70,"column":40},"end":{"line":70,"column":84}},{"start":{"line":70,"column":88},"end":{"line":70,"column":113}}]}},"code":["(function () { YUI.add('moodle-availability_examus-form', function (Y, NAME) {","","/*global M*/","/**"," * JavaScript for form editing profile conditions."," *"," * @module moodle-availability_examus-form"," */","M.availability_examus = M.availability_examus || {};","","M.availability_examus.form = Y.Object(M.core_availability.plugin);","","M.availability_examus.form.initInner = function() {"," // Nothing.","};","","M.availability_examus.form.instId = 1;","","M.availability_examus.form.getNode = function(json) {"," var html, node, root, id, strings, modeId;"," strings = M.str.availability_examus;",""," id = 'examus' + M.availability_examus.form.instId;"," M.availability_examus.form.instId += 1;",""," html = '
';",""," html += ' ';"," html += '';",""," modeId = 'examus' + M.availability_examus.form.instId;"," html += '
';"," html += '';",""," node = Y.Node.create(' ' + html + ' ');"," if (json.duration !== undefined) {"," node.one('input[name=duration]').set('value', json.duration);"," }",""," if (json.mode !== undefined) {"," node.one('select[name=mode] option[value=' + json.mode + ']').set('selected', 'selected');"," }",""," if (!M.availability_examus.form.addedEvents) {"," M.availability_examus.form.addedEvents = true;"," root = Y.one(\".availability-field\");"," root.delegate('valuechange', function() {"," M.core_availability.form.update();"," }, '.availability_examus input[name=duration]');"," root.delegate('valuechange', function() {"," M.core_availability.form.update();"," }, '.availability_examus select[name=mode]');"," }",""," return node;","};","","M.availability_examus.form.fillValue = function(value, node) {"," value.duration = node.one('input[name=duration]').get('value').trim();"," value.mode = node.one('select[name=mode]').get('value').trim();","};","","M.availability_examus.form.fillErrors = function(errors, node) {"," var value = {};"," this.fillValue(value, node);"," if (value.duration === undefined || !(new RegExp('^\\\\d+$')).test(value.duration) || value.duration % 30 !== 0) {"," errors.push('availability_examus:error_setduration');"," }","};","","}, '@VERSION@', {\"requires\": [\"base\", \"node\", \"event\", \"moodle-core_availability-form\"]});","","}());"]};
+ __coverage__['build/moodle-availability_examus-form/moodle-availability_examus-form.js'] = {"path":"build/moodle-availability_examus-form/moodle-availability_examus-form.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":62}}},"2":{"name":"(anonymous_2)","line":13,"loc":{"start":{"line":13,"column":39},"end":{"line":13,"column":50}}},"3":{"name":"(anonymous_3)","line":19,"loc":{"start":{"line":19,"column":37},"end":{"line":19,"column":52}}},"4":{"name":"get_string","line":22,"loc":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}}},"5":{"name":"(anonymous_5)","line":54,"loc":{"start":{"line":54,"column":37},"end":{"line":54,"column":48}}},"6":{"name":"(anonymous_6)","line":57,"loc":{"start":{"line":57,"column":37},"end":{"line":57,"column":48}}},"7":{"name":"(anonymous_7)","line":65,"loc":{"start":{"line":65,"column":39},"end":{"line":65,"column":61}}},"8":{"name":"(anonymous_8)","line":70,"loc":{"start":{"line":70,"column":40},"end":{"line":70,"column":63}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":78,"column":90}},"2":{"start":{"line":9,"column":0},"end":{"line":9,"column":52}},"3":{"start":{"line":11,"column":0},"end":{"line":11,"column":66}},"4":{"start":{"line":13,"column":0},"end":{"line":15,"column":2}},"5":{"start":{"line":17,"column":0},"end":{"line":17,"column":38}},"6":{"start":{"line":19,"column":0},"end":{"line":63,"column":2}},"7":{"start":{"line":20,"column":4},"end":{"line":20,"column":37}},"8":{"start":{"line":22,"column":4},"end":{"line":24,"column":5}},"9":{"start":{"line":23,"column":8},"end":{"line":23,"column":68}},"10":{"start":{"line":26,"column":4},"end":{"line":26,"column":54}},"11":{"start":{"line":27,"column":4},"end":{"line":27,"column":43}},"12":{"start":{"line":29,"column":4},"end":{"line":29,"column":62}},"13":{"start":{"line":31,"column":4},"end":{"line":31,"column":77}},"14":{"start":{"line":32,"column":4},"end":{"line":32,"column":66}},"15":{"start":{"line":34,"column":4},"end":{"line":34,"column":58}},"16":{"start":{"line":35,"column":4},"end":{"line":35,"column":81}},"17":{"start":{"line":36,"column":4},"end":{"line":36,"column":55}},"18":{"start":{"line":37,"column":4},"end":{"line":37,"column":82}},"19":{"start":{"line":38,"column":4},"end":{"line":38,"column":98}},"20":{"start":{"line":39,"column":4},"end":{"line":39,"column":86}},"21":{"start":{"line":40,"column":4},"end":{"line":40,"column":24}},"22":{"start":{"line":42,"column":4},"end":{"line":42,"column":56}},"23":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"24":{"start":{"line":44,"column":8},"end":{"line":44,"column":69}},"25":{"start":{"line":47,"column":4},"end":{"line":49,"column":5}},"26":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}},"27":{"start":{"line":51,"column":4},"end":{"line":60,"column":5}},"28":{"start":{"line":52,"column":8},"end":{"line":52,"column":54}},"29":{"start":{"line":53,"column":8},"end":{"line":53,"column":44}},"30":{"start":{"line":54,"column":8},"end":{"line":56,"column":56}},"31":{"start":{"line":55,"column":12},"end":{"line":55,"column":46}},"32":{"start":{"line":57,"column":8},"end":{"line":59,"column":53}},"33":{"start":{"line":58,"column":12},"end":{"line":58,"column":46}},"34":{"start":{"line":62,"column":4},"end":{"line":62,"column":16}},"35":{"start":{"line":65,"column":0},"end":{"line":68,"column":2}},"36":{"start":{"line":66,"column":4},"end":{"line":66,"column":74}},"37":{"start":{"line":67,"column":4},"end":{"line":67,"column":67}},"38":{"start":{"line":70,"column":0},"end":{"line":76,"column":2}},"39":{"start":{"line":71,"column":4},"end":{"line":71,"column":19}},"40":{"start":{"line":72,"column":4},"end":{"line":72,"column":32}},"41":{"start":{"line":73,"column":4},"end":{"line":75,"column":5}},"42":{"start":{"line":74,"column":8},"end":{"line":74,"column":61}}},"branchMap":{"1":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":24},"end":{"line":9,"column":45}},{"start":{"line":9,"column":49},"end":{"line":9,"column":51}}]},"2":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"3":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":4}},{"start":{"line":47,"column":4},"end":{"line":47,"column":4}}]},"4":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":51,"column":4}},{"start":{"line":51,"column":4},"end":{"line":51,"column":4}}]},"5":{"line":73,"type":"if","locations":[{"start":{"line":73,"column":4},"end":{"line":73,"column":4}},{"start":{"line":73,"column":4},"end":{"line":73,"column":4}}]},"6":{"line":73,"type":"binary-expr","locations":[{"start":{"line":73,"column":8},"end":{"line":73,"column":36}},{"start":{"line":73,"column":40},"end":{"line":73,"column":84}},{"start":{"line":73,"column":88},"end":{"line":73,"column":113}}]}},"code":["(function () { YUI.add('moodle-availability_examus-form', function (Y, NAME) {","","/* global M */","/**"," * JavaScript for form editing profile conditions."," *"," * @module moodle-availability_examus-form"," */","M.availability_examus = M.availability_examus || {};","","M.availability_examus.form = Y.Object(M.core_availability.plugin);","","M.availability_examus.form.initInner = function() {"," // Nothing.","};","","M.availability_examus.form.instId = 1;","","M.availability_examus.form.getNode = function(json) {"," var html, node, root, id, modeId;",""," function get_string(identifier) {"," return M.util.get_string(identifier, 'availability_examus');"," }",""," id = 'examus' + M.availability_examus.form.instId;"," M.availability_examus.form.instId += 1;",""," html = '
';",""," html += ' ';"," html += '';",""," modeId = 'examus' + M.availability_examus.form.instId;"," html += '
';"," html += '';",""," node = Y.Node.create(' ' + html + ' ');"," if (json.duration !== undefined) {"," node.one('input[name=duration]').set('value', json.duration);"," }",""," if (json.mode !== undefined) {"," node.one('select[name=mode] option[value=' + json.mode + ']').set('selected', 'selected');"," }",""," if (!M.availability_examus.form.addedEvents) {"," M.availability_examus.form.addedEvents = true;"," root = Y.one(\".availability-field\");"," root.delegate('valuechange', function() {"," M.core_availability.form.update();"," }, '.availability_examus input[name=duration]');"," root.delegate('valuechange', function() {"," M.core_availability.form.update();"," }, '.availability_examus select[name=mode]');"," }",""," return node;","};","","M.availability_examus.form.fillValue = function(value, node) {"," value.duration = node.one('input[name=duration]').get('value').trim();"," value.mode = node.one('select[name=mode]').get('value').trim();","};","","M.availability_examus.form.fillErrors = function(errors, node) {"," var value = {};"," this.fillValue(value, node);"," if (value.duration === undefined || !(new RegExp('^\\\\d+$')).test(value.duration) || value.duration % 30 !== 0) {"," errors.push('availability_examus:error_setduration');"," }","};","","}, '@VERSION@', {\"requires\": [\"base\", \"node\", \"event\", \"moodle-core_availability-form\"]});","","}());"]};
}
var __cov_VkxrC3bnPgMAADDnSvyZqQ = __coverage__['build/moodle-availability_examus-form/moodle-availability_examus-form.js'];
-__cov_VkxrC3bnPgMAADDnSvyZqQ.s['1']++;YUI.add('moodle-availability_examus-form',function(Y,NAME){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['1']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['2']++;M.availability_examus=(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['1'][0]++,M.availability_examus)||(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['1'][1]++,{});__cov_VkxrC3bnPgMAADDnSvyZqQ.s['3']++;M.availability_examus.form=Y.Object(M.core_availability.plugin);__cov_VkxrC3bnPgMAADDnSvyZqQ.s['4']++;M.availability_examus.form.initInner=function(){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['2']++;};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['5']++;M.availability_examus.form.instId=1;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['6']++;M.availability_examus.form.getNode=function(json){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['3']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['7']++;var html,node,root,id,strings,modeId;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['8']++;strings=M.str.availability_examus;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['9']++;id='examus'+M.availability_examus.form.instId;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['10']++;M.availability_examus.form.instId+=1;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['11']++;html='
';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['12']++;html+=' ';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['13']++;html+='';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['14']++;modeId='examus'+M.availability_examus.form.instId;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['15']++;html+='
';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['16']++;html+='';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['21']++;node=Y.Node.create(' '+html+' ');__cov_VkxrC3bnPgMAADDnSvyZqQ.s['22']++;if(json.duration!==undefined){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['2'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['23']++;node.one('input[name=duration]').set('value',json.duration);}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['2'][1]++;}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['24']++;if(json.mode!==undefined){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['3'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['25']++;node.one('select[name=mode] option[value='+json.mode+']').set('selected','selected');}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['3'][1]++;}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['26']++;if(!M.availability_examus.form.addedEvents){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['4'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['27']++;M.availability_examus.form.addedEvents=true;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['28']++;root=Y.one('.availability-field');__cov_VkxrC3bnPgMAADDnSvyZqQ.s['29']++;root.delegate('valuechange',function(){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['4']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['30']++;M.core_availability.form.update();},'.availability_examus input[name=duration]');__cov_VkxrC3bnPgMAADDnSvyZqQ.s['31']++;root.delegate('valuechange',function(){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['5']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['32']++;M.core_availability.form.update();},'.availability_examus select[name=mode]');}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['4'][1]++;}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['33']++;return node;};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['34']++;M.availability_examus.form.fillValue=function(value,node){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['6']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['35']++;value.duration=node.one('input[name=duration]').get('value').trim();__cov_VkxrC3bnPgMAADDnSvyZqQ.s['36']++;value.mode=node.one('select[name=mode]').get('value').trim();};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['37']++;M.availability_examus.form.fillErrors=function(errors,node){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['7']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['38']++;var value={};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['39']++;this.fillValue(value,node);__cov_VkxrC3bnPgMAADDnSvyZqQ.s['40']++;if((__cov_VkxrC3bnPgMAADDnSvyZqQ.b['6'][0]++,value.duration===undefined)||(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['6'][1]++,!new RegExp('^\\d+$').test(value.duration))||(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['6'][2]++,value.duration%30!==0)){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['5'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['41']++;errors.push('availability_examus:error_setduration');}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['5'][1]++;}};},'@VERSION@',{'requires':['base','node','event','moodle-core_availability-form']});
+__cov_VkxrC3bnPgMAADDnSvyZqQ.s['1']++;YUI.add('moodle-availability_examus-form',function(Y,NAME){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['1']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['2']++;M.availability_examus=(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['1'][0]++,M.availability_examus)||(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['1'][1]++,{});__cov_VkxrC3bnPgMAADDnSvyZqQ.s['3']++;M.availability_examus.form=Y.Object(M.core_availability.plugin);__cov_VkxrC3bnPgMAADDnSvyZqQ.s['4']++;M.availability_examus.form.initInner=function(){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['2']++;};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['5']++;M.availability_examus.form.instId=1;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['6']++;M.availability_examus.form.getNode=function(json){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['3']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['7']++;var html,node,root,id,modeId;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['8']++;function get_string(identifier){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['4']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['9']++;return M.util.get_string(identifier,'availability_examus');}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['10']++;id='examus'+M.availability_examus.form.instId;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['11']++;M.availability_examus.form.instId+=1;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['12']++;html='
';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['13']++;html+=' ';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['14']++;html+='';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['15']++;modeId='examus'+M.availability_examus.form.instId;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['16']++;html+='
';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['17']++;html+='';__cov_VkxrC3bnPgMAADDnSvyZqQ.s['22']++;node=Y.Node.create(' '+html+' ');__cov_VkxrC3bnPgMAADDnSvyZqQ.s['23']++;if(json.duration!==undefined){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['2'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['24']++;node.one('input[name=duration]').set('value',json.duration);}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['2'][1]++;}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['25']++;if(json.mode!==undefined){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['3'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['26']++;node.one('select[name=mode] option[value='+json.mode+']').set('selected','selected');}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['3'][1]++;}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['27']++;if(!M.availability_examus.form.addedEvents){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['4'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['28']++;M.availability_examus.form.addedEvents=true;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['29']++;root=Y.one('.availability-field');__cov_VkxrC3bnPgMAADDnSvyZqQ.s['30']++;root.delegate('valuechange',function(){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['5']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['31']++;M.core_availability.form.update();},'.availability_examus input[name=duration]');__cov_VkxrC3bnPgMAADDnSvyZqQ.s['32']++;root.delegate('valuechange',function(){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['6']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['33']++;M.core_availability.form.update();},'.availability_examus select[name=mode]');}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['4'][1]++;}__cov_VkxrC3bnPgMAADDnSvyZqQ.s['34']++;return node;};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['35']++;M.availability_examus.form.fillValue=function(value,node){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['7']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['36']++;value.duration=node.one('input[name=duration]').get('value').trim();__cov_VkxrC3bnPgMAADDnSvyZqQ.s['37']++;value.mode=node.one('select[name=mode]').get('value').trim();};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['38']++;M.availability_examus.form.fillErrors=function(errors,node){__cov_VkxrC3bnPgMAADDnSvyZqQ.f['8']++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['39']++;var value={};__cov_VkxrC3bnPgMAADDnSvyZqQ.s['40']++;this.fillValue(value,node);__cov_VkxrC3bnPgMAADDnSvyZqQ.s['41']++;if((__cov_VkxrC3bnPgMAADDnSvyZqQ.b['6'][0]++,value.duration===undefined)||(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['6'][1]++,!new RegExp('^\\d+$').test(value.duration))||(__cov_VkxrC3bnPgMAADDnSvyZqQ.b['6'][2]++,value.duration%30!==0)){__cov_VkxrC3bnPgMAADDnSvyZqQ.b['5'][0]++;__cov_VkxrC3bnPgMAADDnSvyZqQ.s['42']++;errors.push('availability_examus:error_setduration');}else{__cov_VkxrC3bnPgMAADDnSvyZqQ.b['5'][1]++;}};},'@VERSION@',{'requires':['base','node','event','moodle-core_availability-form']});
diff --git a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-debug.js b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-debug.js
index 337c523..1465590 100644
--- a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-debug.js
+++ b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-debug.js
@@ -1,6 +1,6 @@
YUI.add('moodle-availability_examus-form', function (Y, NAME) {
-/*global M*/
+/* global M */
/**
* JavaScript for form editing profile conditions.
*
@@ -17,23 +17,26 @@ M.availability_examus.form.initInner = function() {
M.availability_examus.form.instId = 1;
M.availability_examus.form.getNode = function(json) {
- var html, node, root, id, strings, modeId;
- strings = M.str.availability_examus;
+ var html, node, root, id, modeId;
+
+ function get_string(identifier) {
+ return M.util.get_string(identifier, 'availability_examus');
+ }
id = 'examus' + M.availability_examus.form.instId;
M.availability_examus.form.instId += 1;
- html = '
';
+ html = '
';
- html += ' ';
+ html += ' ';
html += '';
modeId = 'examus' + M.availability_examus.form.instId;
- html += '
';
+ html += '
';
html += '';
node = Y.Node.create(' ' + html + ' ');
diff --git a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-min.js b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-min.js
index f132c2a..e8c258a 100644
--- a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-min.js
+++ b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form-min.js
@@ -1 +1 @@
-YUI.add("moodle-availability_examus-form",function(e,t){M.availability_examus=M.availability_examus||{},M.availability_examus.form=e.Object(M.core_availability.plugin),M.availability_examus.form.initInner=function(){},M.availability_examus.form.instId=1,M.availability_examus.form.getNode=function(t){var n,r,i,s,o,u;return o=M.str.availability_examus,s="examus"+M.availability_examus.form.instId,M.availability_examus.form.instId+=1,n="
",n+=' ",n+='',u="examus"+M.availability_examus.form.instId,n+='
",n+='",r=e.Node.create(" "+n+" "),t.duration!==undefined&&r.one("input[name=duration]").set("value",t.duration),t.mode!==undefined&&r.one("select[name=mode] option[value="+t.mode+"]").set("selected","selected"),M.availability_examus.form.addedEvents||(M.availability_examus.form.addedEvents=!0,i=e.one(".availability-field"),i.delegate("valuechange",function(){M.core_availability.form.update()},".availability_examus input[name=duration]"),i.delegate("valuechange",function(){M.core_availability.form.update()},".availability_examus select[name=mode]")),r},M.availability_examus.form.fillValue=function(e,t){e.duration=t.one("input[name=duration]").get("value").trim(),e.mode=t.one("select[name=mode]").get("value").trim()},M.availability_examus.form.fillErrors=function(e,t){var n={};this.fillValue(n,t),(n.duration===undefined||!(new RegExp("^\\d+$")).test(n.duration)||n.duration%30!==0)&&e.push("availability_examus:error_setduration")}},"@VERSION@",{requires:["base","node","event","moodle-core_availability-form"]});
+YUI.add("moodle-availability_examus-form",function(e,t){M.availability_examus=M.availability_examus||{},M.availability_examus.form=e.Object(M.core_availability.plugin),M.availability_examus.form.initInner=function(){},M.availability_examus.form.instId=1,M.availability_examus.form.getNode=function(t){function u(e){return M.util.get_string(e,"availability_examus")}var n,r,i,s,o;return s="examus"+M.availability_examus.form.instId,M.availability_examus.form.instId+=1,n="
",n+=' ",n+='',o="examus"+M.availability_examus.form.instId,n+='
",n+='",r=e.Node.create(" "+n+" "),t.duration!==undefined&&r.one("input[name=duration]").set("value",t.duration),t.mode!==undefined&&r.one("select[name=mode] option[value="+t.mode+"]").set("selected","selected"),M.availability_examus.form.addedEvents||(M.availability_examus.form.addedEvents=!0,i=e.one(".availability-field"),i.delegate("valuechange",function(){M.core_availability.form.update()},".availability_examus input[name=duration]"),i.delegate("valuechange",function(){M.core_availability.form.update()},".availability_examus select[name=mode]")),r},M.availability_examus.form.fillValue=function(e,t){e.duration=t.one("input[name=duration]").get("value").trim(),e.mode=t.one("select[name=mode]").get("value").trim()},M.availability_examus.form.fillErrors=function(e,t){var n={};this.fillValue(n,t),(n.duration===undefined||!(new RegExp("^\\d+$")).test(n.duration)||n.duration%30!==0)&&e.push("availability_examus:error_setduration")}},"@VERSION@",{requires:["base","node","event","moodle-core_availability-form"]});
diff --git a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form.js b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form.js
index 337c523..1465590 100644
--- a/yui/build/moodle-availability_examus-form/moodle-availability_examus-form.js
+++ b/yui/build/moodle-availability_examus-form/moodle-availability_examus-form.js
@@ -1,6 +1,6 @@
YUI.add('moodle-availability_examus-form', function (Y, NAME) {
-/*global M*/
+/* global M */
/**
* JavaScript for form editing profile conditions.
*
@@ -17,23 +17,26 @@ M.availability_examus.form.initInner = function() {
M.availability_examus.form.instId = 1;
M.availability_examus.form.getNode = function(json) {
- var html, node, root, id, strings, modeId;
- strings = M.str.availability_examus;
+ var html, node, root, id, modeId;
+
+ function get_string(identifier) {
+ return M.util.get_string(identifier, 'availability_examus');
+ }
id = 'examus' + M.availability_examus.form.instId;
M.availability_examus.form.instId += 1;
- html = '
';
+ html = '
';
- html += ' ';
+ html += ' ';
html += '';
modeId = 'examus' + M.availability_examus.form.instId;
- html += '
';
+ html += '
';
html += '';
node = Y.Node.create(' ' + html + ' ');
diff --git a/yui/src/form/js/form.js b/yui/src/form/js/form.js
index c91b425..5186507 100644
--- a/yui/src/form/js/form.js
+++ b/yui/src/form/js/form.js
@@ -1,4 +1,4 @@
-/*global M*/
+/* global M */
/**
* JavaScript for form editing profile conditions.
*
@@ -15,23 +15,26 @@ M.availability_examus.form.initInner = function() {
M.availability_examus.form.instId = 1;
M.availability_examus.form.getNode = function(json) {
- var html, node, root, id, strings, modeId;
- strings = M.str.availability_examus;
+ var html, node, root, id, modeId;
+
+ function get_string(identifier) {
+ return M.util.get_string(identifier, 'availability_examus');
+ }
id = 'examus' + M.availability_examus.form.instId;
M.availability_examus.form.instId += 1;
- html = '
';
+ html = '
';
- html += ' ';
+ html += ' ';
html += '';
modeId = 'examus' + M.availability_examus.form.instId;
- html += '
';
+ html += '
';
html += '';
node = Y.Node.create(' ' + html + ' ');