diff options
Diffstat (limited to 'sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button')
3 files changed, 0 insertions, 112 deletions
diff --git a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/button.css b/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/button.css deleted file mode 100644 index 17123dcd7..000000000 --- a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/button.css +++ /dev/null @@ -1,50 +0,0 @@ -.uiButton { - padding: 0; - border: 0; - margin: 3px; - width: auto; - overflow: visible; - cursor: pointer; - background: transparent; -} - -.uiButton-content { - height: 20px; - border: 1px solid #668dc6; - border-radius: 2px; - background: #96c6eb; - background: -moz-linear-gradient(top, #96c6eb, #5296c7); - background: -webkit-linear-gradient(top, #96c6eb, #5296c7); - color: white; - font-weight: bold; -} - -.moz .uiButton-content { margin: 0 -2px; } - -.uiButton-label { - padding: 2px 6px; - white-space: nowrap; -} -.uiButton:hover .uiButton-content { - background: #2777ba; - background: -moz-linear-gradient(top, #6aaadf, #2777ba); - background: -webkit-linear-gradient(top, #6aaadf, #2777ba); -} -.uiButton.active .uiButton-content, -.uiButton:active .uiButton-content { - background: #2575b7; - background: -moz-linear-gradient(top, #2576b8, #2575b7); - background: -webkit-linear-gradient(top, #2576b8, #2575b7); -} -.uiButton.disabled .uiButton-content, -.uiButton.disabled:active .uiButton-content { - border-color: #c6c6c6; - color: #999999; - background: #ddd; - background: -moz-linear-gradient(top, #ddd, #ddd); - background: -webkit-linear-gradient(top, #ddd, #ddd); -} - -.uiButton.disabled { - cursor: default; -} diff --git a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/button.js b/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/button.js deleted file mode 100644 index 57f83a083..000000000 --- a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/button.js +++ /dev/null @@ -1,53 +0,0 @@ -(function( $, joey, app ) { - - var ui = app.ns("ui"); - - ui.Button = ui.AbstractWidget.extend({ - defaults : { - label: "", // the label text - disabled: false, // create a disabled button - autoDisable: false // automatically disable the button when clicked - }, - - _baseCls: "uiButton", - - init: function(parent) { - this._super(); - this.el = $.joey(this.button_template()) - .bind("click", this.click_handler); - this.config.disabled && this.disable(); - this.attach( parent ); - }, - - click_handler: function(jEv) { - if(! this.disabled) { - this.fire("click", jEv, this); - this.config.autoDisable && this.disable(); - } - }, - - enable: function() { - this.el.removeClass("disabled"); - this.disabled = false; - return this; - }, - - disable: function(disable) { - if(disable === false) { - return this.enable(); - } - this.el.addClass("disabled"); - this.disabled = true; - return this; - }, - - button_template: function() { return ( - { tag: 'BUTTON', type: 'button', id: this.id(), cls: this._baseCls, children: [ - { tag: 'DIV', cls: 'uiButton-content', children: [ - { tag: 'DIV', cls: 'uiButton-label', text: this.config.label } - ] } - ] } - ); } - }); - -})( this.jQuery, this.joey, this.app ); diff --git a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/buttonDemo.js b/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/buttonDemo.js deleted file mode 100644 index 060e8f650..000000000 --- a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ui/button/buttonDemo.js +++ /dev/null @@ -1,9 +0,0 @@ -$( function() { - - var ui = window.app.ns("ui"); - - window.builder = function() { - return new ui.Button({ label: "Default" }); - } ; - -});
\ No newline at end of file |