Lines Matching refs:attrs
146 if (this.attrs.remembered) {
147 sendConnect(index, this.attrs.passphrase, '', this.attrs.auto_connect);
238 this.autoConnectCheckbox.checked = this.attrs.auto_connect;
258 var attrs = this.attrs;
259 this.classList.add(attrs.type);
264 this.label_.textContent = attrs.label;
266 if (attrs.network_type == NetworkOther) {
270 } else if (attrs.status && attrs.status != 'unknown') {
271 if (attrs.status == StatusConnected) {
272 this.setStatus_(attrs.ip_address);
273 } else if (attrs.status == StatusConnecting) {
274 this.setStatus_(attrs.message);
278 } else if (attrs.status == StatusError) {
279 this.setStatus_(attrs.message);
292 if (attrs.need_passphrase) {
300 if (attrs.font) {
301 this.label_.style.font = attrs.font;
303 var base_font = attrs.font.replace(/bold/, '').replace(/italic/, '');
319 if ((this.attrs.network_type == NetworkOther ||
320 this.attrs.status == StatusDisconnected) &&
321 this.attrs.need_passphrase &&
338 createMenuItem: function(attrs) {
339 if (attrs.type == 'command') {