Mercurial > hg > digilib
comparison client/digitallibrary/greyskin/baselib.js @ 448:ff63f8ce2039
ongoing experimental intermediary release
- more cleanup on object stuff
- new mark image
- menu is now fixed and tries to work in IE
author | robcast |
---|---|
date | Tue, 24 Jan 2006 21:17:44 +0100 |
parents | 8f8d7c1a12b9 |
children | 23195b070d30 |
comparison
equal
deleted
inserted
replaced
447:c3a36b515a73 | 448:ff63f8ce2039 |
---|---|
353 * parameters class | 353 * parameters class |
354 */ | 354 */ |
355 | 355 |
356 function Parameters() { | 356 function Parameters() { |
357 this.params = new Object(); | 357 this.params = new Object(); |
358 this.PARAM_ALL = 65535; | |
358 return this; | 359 return this; |
359 } | 360 } |
360 Parameters.prototype.define = function(name, defaultValue, detail) { | 361 Parameters.prototype.define = function(name, defaultValue, detail) { |
361 // create a new parameter with a name and a default value | 362 // create a new parameter with a name and a default value |
362 if (!this.params[name]) this.params[name] = new Object(); | 363 if (!this.params[name]) this.params[name] = new Object(); |
418 if (!defined(this.params[name])) return null; | 419 if (!defined(this.params[name])) return null; |
419 return this.params[name].hasValue; | 420 return this.params[name].hasValue; |
420 } | 421 } |
421 Parameters.prototype.getAll = function(detail) { | 422 Parameters.prototype.getAll = function(detail) { |
422 // returns a string of all parameters in query format | 423 // returns a string of all parameters in query format |
423 if (!detail) detail = 255; | 424 if (!detail) detail = this.PARAM_ALL; |
424 var pa = new Array(); | 425 var pa = new Array(); |
425 for (p in this.params) { | 426 for (p in this.params) { |
426 if (((this.params[p].detail & detail) > 0) | 427 if (((this.params[p].detail & detail) > 0) |
427 && (this.params[p].hasValue)) { | 428 && (this.params[p].hasValue)) { |
428 var val = this.params[p].value; | 429 var val = this.params[p].value; |