ToolForm: Fix execute button style

This commit is contained in:
Aysam Guerler
2014-10-08 22:49:39 -04:00
parent 417ce5d7c4
commit 2ea3fa14af
6 changed files with 10 additions and 8 deletions
@@ -178,10 +178,11 @@ define(['mvc/ui/ui-portlet', 'mvc/ui/ui-misc',
title: '<b>' + self.model.get('name') + '</b> ' + self.model.get('description'),
operations: operations,
buttons: {
execute: new Ui.ButtonIcon({
execute: new Ui.Button({
icon : 'fa-check',
tooltip : 'Execute the tool',
title : 'Execute',
cls : 'btn btn-primary',
floating : 'clear',
onclick : function() {
self.job_handler.submit();
+2 -2
View File
@@ -102,7 +102,7 @@ var Button = Backbone.View.extend({
id : null,
title : '',
floating : 'right',
cls : 'btn btn-default',
cls : 'ui-button btn btn-default',
icon : ''
},
@@ -131,7 +131,7 @@ var Button = Backbone.View.extend({
// element
_template: function(options) {
var str = '<button id="' + options.id + '" type="submit" style="float: ' + options.floating + ';" type="button" class="ui-button ' + options.cls + '">';
var str = '<button id="' + options.id + '" type="submit" style="float: ' + options.floating + ';" type="button" class="' + options.cls + '">';
if (options.icon) {
str += '<i class="icon fa ' + options.icon + '"></i>&nbsp;' ;
}