Skip to content

Commit

Permalink
Remove crm.admin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Oct 1, 2018
1 parent 98d0b6c commit d2b384e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CRM/Admin/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getDefaultContext() {
*/
public function preProcess() {
Civi::resources()->addStyleFile('civicrm', 'css/admin.css');
Civi::resources()->addScriptFile('civicrm', 'js/crm.admin.js');
Civi::resources()->addScriptFile('civicrm', 'js/jquery/jquery.crmIconPicker.js');

$this->_id = $this->get('id');
$this->_BAOName = $this->get('BAOName');
Expand Down
21 changes: 0 additions & 21 deletions js/crm.admin.js

This file was deleted.

9 changes: 7 additions & 2 deletions js/jquery/jquery.crmIconPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@

function displayDialog() {
dialog.append('<style type="text/css">' +
'#crmIconPicker {font-size: 2em;}' +
'#crmIconPicker {font-size: 20px;}' +
'#crmIconPicker .icon-search input {font-family: FontAwesome; padding-left: .5em; margin-bottom: 1em;}' +
'#crmIconPicker a.ui-button {width: 2em; height: 2em; color: #222;}' +
'#crmIconPicker a.ui-button {width: 1em; height: 1em; color: #222;}' +
'#crmIconPicker a.ui-button .ui-icon {margin-top: -0.5em; width: auto; height: auto;}' +
'</style>' +
'<div class="icon-search"><input class="crm-form-text" name="search" placeholder="&#xf002"/></div>' +
Expand Down Expand Up @@ -117,4 +117,9 @@

});
};

$(document)
.on('crmLoad', function(e) {
$('.crm-icon-picker', e.target).not('.iconpicker-widget').crmIconPicker();
});
}(CRM.$, CRM._));

0 comments on commit d2b384e

Please sign in to comment.