X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fcontrols.js;h=ba0d89aae9d441d52add4cb9f1aeee09bcb0bcea;hp=53a060f9765dbfcbefd0c9e24bcca2a2768ec501;hb=HEAD;hpb=b9bad7137ebc39fc083b04b3a17db5555f6b6f22 diff --git a/include/controls.js b/include/controls.js index 53a060f..ba0d89a 100644 --- a/include/controls.js +++ b/include/controls.js @@ -26,8 +26,8 @@ var Controls = new Class({ getOptions: function(){ return { onClick: $empty, - zIndex: 3, - buttonClass: 'controlButton', + zIndex: 9, + buttonClass: 'controlButton' } }, @@ -37,9 +37,9 @@ var Controls = new Class({ this.container = new Element('div').addClass(name). setProperties({ id: name, - name: name, + name: name }).setStyles({ - zIndex: this.options.zIndex, + zIndex: this.options.zIndex }).addEvent('click', function(){ this.options.onClick() }.bind(this)).injectInside(this.parent); @@ -49,7 +49,7 @@ var Controls = new Class({ sub.addClass(this.options.buttonClass).setProperties({ id: el, name: el, - title: el, + title: el }).addEvent('click', function(){ this[el](); }.bind(this)).injectInside(this.container); @@ -57,13 +57,13 @@ var Controls = new Class({ },this); this.posbox = new Element('span'). addClass('controlPosition').setProperties({ - id: 'controlPosition', + id: 'controlPosition' }).injectInside(this.commbox); this.refbox = new Element('a', { href: 'javascript: void(1);', - html: 'title', + html: 'title' }).addClass('controlRef').setProperties({ - id: 'controlRef', + id: 'controlRef' }).injectInside(this.commbox); }, @@ -132,7 +132,8 @@ var Controls = new Class({ this.stopbox.setStyle('display', 'none'); this.playbox.setStyle('display', 'block'); } - }, + } }); + Controls.implement(new Options);