/usr/share/javascript/dijit/Fieldset.js is in libjs-dojo-dijit 1.11.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | require({cache:{
'url:dijit/templates/Fieldset.html':"<fieldset>\n\t<legend data-dojo-attach-event=\"ondijitclick:_onTitleClick, onkeydown:_onTitleKey\"\n\t\t\tdata-dojo-attach-point=\"titleBarNode, titleNode\">\n\t\t<span data-dojo-attach-point=\"arrowNode\" class=\"dijitInline dijitArrowNode\" role=\"presentation\"></span\n\t\t><span data-dojo-attach-point=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t><span data-dojo-attach-point=\"titleNode, focusNode\" class=\"dijitFieldsetLegendNode\" id=\"${id}_titleNode\"></span>\n\t</legend>\n\t<div class=\"dijitFieldsetContentOuter\" data-dojo-attach-point=\"hideNode\" role=\"presentation\">\n\t\t<div class=\"dijitReset\" data-dojo-attach-point=\"wipeNode\" role=\"presentation\">\n\t\t\t<div class=\"dijitFieldsetContentInner\" data-dojo-attach-point=\"containerNode\" role=\"region\"\n\t\t\t\t \tid=\"${id}_pane\" aria-labelledby=\"${id}_titleNode\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc. Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</fieldset>\n"}});
define("dijit/Fieldset", [
"dojo/_base/declare",
"dojo/query!css2",
"dijit/TitlePane",
"dojo/text!./templates/Fieldset.html",
"./a11yclick" // template uses ondijitclick
], function(declare, query, TitlePane, template){
return declare("dijit.Fieldset", TitlePane, {
// summary:
// An accessible fieldset that can be expanded or collapsed via
// its legend. Fieldset extends `dijit.TitlePane`.
// baseClass: [protected] String
// The root className to use for the various states of this widget
baseClass: 'dijitFieldset',
// title: String
// Content of the legend tag. Overrides <legend> tag if not empty.
title: '',
// open: Boolean
// Whether fieldset is opened or closed.
open: true,
templateString: template,
postCreate: function() {
if(!this.title){
var legends = query('legend', this.containerNode);
if(legends.length) { // oops, no legend?
this.set('title', legends[0].innerHTML);
legends[0].parentNode.removeChild(legends[0]);
}
}
this.inherited(arguments);
}
});
});
|