From: Coleman Watts Date: Wed, 3 Sep 2014 21:24:23 +0000 (+0100) Subject: CRM-13863 - Civi style for profile designer buttons X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=496a23ac5337f9d892282a88a7465a8da258a466;p=civicrm-core.git CRM-13863 - Civi style for profile designer buttons --- diff --git a/js/view/crm.designer.js b/js/view/crm.designer.js index 07501e6b8f..b4b49cd249 100644 --- a/js/view/crm.designer.js +++ b/js/view/crm.designer.js @@ -198,11 +198,11 @@ 'click .crm-designer-preview': 'doPreview' }, onRender: function() { - this.$('.crm-designer-save').button().attr({ + this.$('.crm-designer-save').button({icons: {primary: 'ui-icon-check'}}).attr({ disabled: 'disabled', - style: 'opacity:.5; box-shadow:none; cursor:default;' + style: 'opacity:.5; cursor:default;' }); - this.$('.crm-designer-preview').button(); + this.$('.crm-designer-preview').button({icons: {primary: 'ui-icon-search'}}); }, initialize: function(options) { CRM.designerApp.vent.on('ufUnsaved', this.onUfChanged, this); @@ -254,7 +254,7 @@ if (!this.previewMode) { $('.crm-designer-preview-canvas').html(''); $('.crm-designer-canvas > *, .crm-designer-palette-region').show(); - $('.crm-designer-preview span').html(ts('Preview')); + $('.crm-designer-preview').button('option', {icons: {primary: 'ui-icon-search'}}).find('span').text(ts('Preview'));; return; } if (this.model.getRel('ufFieldCollection').hasDuplicates()) { @@ -277,7 +277,7 @@ $dialog.unblock(); $('.crm-designer-canvas > *, .crm-designer-palette-region').hide(); $('.crm-designer-preview-canvas').html(data).show().trigger('crmLoad').find(':input').prop('readOnly', true); - $('.crm-designer-preview span').html(ts('Edit')); + $('.crm-designer-preview').button('option', {icons: {primary: 'ui-icon-pencil'}}).find('span').text(ts('Edit')); }); } }); diff --git a/templates/CRM/UF/Page/ProfileTemplates.tpl b/templates/CRM/UF/Page/ProfileTemplates.tpl index 9330d9c7de..d08eceb83a 100644 --- a/templates/CRM/UF/Page/ProfileTemplates.tpl +++ b/templates/CRM/UF/Page/ProfileTemplates.tpl @@ -3,7 +3,7 @@ *}