Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
UK Postcodes
Commits
c7291b60
Commit
c7291b60
authored
Jun 06, 2019
by
mattwire
Browse files
Remove css and js resources that are no longer required with recent versions of CiviCRM
parent
2e2c7a9a
Changes
5
Hide whitespace changes
Inline
Side-by-side
civicrmpostcodelookup.php
View file @
c7291b60
...
...
@@ -158,10 +158,6 @@ function civicrmpostcodelookup_civicrm_buildForm($formName, &$form) {
$form
->
assign
(
'civiPostCodeLookupLocationType'
,
$settingsArray
[
'location_type_id'
]);
$form
->
assign
(
'civiPostCodeLookupLocationTypeJson'
,
json_encode
(
$settingsArray
[
'location_type_id'
]));
}
CRM_Core_Resources
::
singleton
()
->
addScriptFile
(
E
::
LONG_NAME
,
'js/jquery.ui.autocomplete.html.js'
,
110
,
'html-header'
,
FALSE
)
->
addStyleFile
(
E
::
LONG_NAME
,
'css/civipostcode.css'
,
110
,
'page-header'
);
}
}
...
...
css/civipostcode.css
deleted
100755 → 0
View file @
2e2c7a9a
.postcodelookup-wrapper
{
width
:
60%
;
height
:
auto
;
margin
:
20px
;
text-align
:
center
;
}
.postcodelookup-header
{
background-color
:
#2C3E50
;
color
:
#ffffff
;
font-size
:
120%
;
padding
:
15px
;
}
.postcodelookup-content
{
background-color
:
#ECF0F1
;
color
:
#002157
;
padding
:
20px
;
}
.postcodelookup-textbox-wrapper
{
display
:
inline
;
}
.loader-image
{
display
:
inline
;
position
:
absolute
;
margin
:
5px
0
0
10px
;
}
.crm-container
.ui-autocomplete-input
{
width
:
350px
;
background
:
#ffffff
;
}
/* highlight results */
.ui-autocomplete
span
.hl_results
{
background-color
:
#ffff66
;
}
/* loading - the AJAX indicator */
.ui-autocomplete-loading
{
background
:
white
url('../img/ui-anim_basic_16x16.gif')
right
center
no-repeat
;
}
/* scroll results */
.ui-autocomplete
{
max-height
:
250px
;
overflow-y
:
auto
;
/* prevent horizontal scrollbar */
overflow-x
:
hidden
;
/* add padding for vertical scrollbar */
padding-right
:
5px
;
background-color
:
#ffffff
;
}
.ui-autocomplete
li
{
font-size
:
16px
;
-moz-border-bottom-colors
:
none
;
-moz-border-left-colors
:
none
;
-moz-border-right-colors
:
none
;
-moz-border-top-colors
:
none
;
border-color
:
transparent
transparent
#e5e5e5
;
border-image
:
none
;
border-style
:
solid
;
border-width
:
1px
;
line-height
:
15px
;
margin
:
0
;
padding
:
20px
!important
;
position
:
relative
;
text-align
:
left
;
white-space
:
nowrap
;
}
.ui-state-focus
,
.ui-widget-content
.ui-state-focus
,
.ui-widget-header
.ui-state-focus
{
background-color
:
#c00
;
background
:
none
;
font-weight
:
normal
;
color
:
#212121
;
}
/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall
*/
*
html
.ui-autocomplete
{
height
:
250px
;
}
js/jquery.ui.autocomplete.html.js
deleted
100755 → 0
View file @
2e2c7a9a
/*
* jQuery UI Autocomplete HTML Extension
*
* Copyright 2010, Scott González (http://scottgonzalez.com)
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* http://github.com/scottgonzalez/jquery-ui-extensions
*/
(
function
(
$
)
{
var
proto
=
$
.
ui
.
autocomplete
.
prototype
,
initSource
=
proto
.
_initSource
;
function
filter
(
array
,
term
)
{
var
matcher
=
new
RegExp
(
$
.
ui
.
autocomplete
.
escapeRegex
(
term
),
"
i
"
);
return
$
.
grep
(
array
,
function
(
value
)
{
return
matcher
.
test
(
$
(
"
<div>
"
).
html
(
value
.
label
||
value
.
value
||
value
).
text
()
);
});
}
$
.
extend
(
proto
,
{
_initSource
:
function
()
{
if
(
this
.
options
.
html
&&
$
.
isArray
(
this
.
options
.
source
)
)
{
this
.
source
=
function
(
request
,
response
)
{
response
(
filter
(
this
.
options
.
source
,
request
.
term
)
);
};
}
else
{
initSource
.
call
(
this
);
}
},
_renderItem
:
function
(
ul
,
item
)
{
return
$
(
"
<li></li>
"
)
.
data
(
"
item.autocomplete
"
,
item
)
.
append
(
$
(
"
<a></a>
"
)[
this
.
options
.
html
?
"
html
"
:
"
text
"
](
item
.
label
)
)
.
appendTo
(
ul
);
}
});
})(
jQuery
);
templates/CRM/Civicrmpostcodelookup/Form/Postcodelookup.tpl
View file @
c7291b60
{
literal
}
<style
type=
"text/css"
>
.ui-autocomplete
{
height
:
200px
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;}
</style>
<script
type=
"text/javascript"
>
cj
(
document
).
ready
(
function
(){
var
locationTypes
=
{/
literal
}{
if
$civiPostCodeLookupLocationTypeJson
}{
$civiPostCodeLookupLocationTypeJson
}{
else
}
''
{/
if
}{
literal
}
;
...
...
templates/CRM/Financial/Form/Payment.extra.tpl
View file @
c7291b60
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
$config
->
extensionsURL
}
uk.co.vedaconsulting.module.civicrmpostcodelookup/css/civipostcode.css"
/>
{* Include file having postcodelookup textbox and JS functions *}
{
include
file
=
'CRM/Civicrmpostcodelookup/Form/Postcodelookup.tpl'
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment