upgrade freetag for 2.0
This commit is contained in:
parent
a8bda77bd1
commit
22834c80b1
|
@ -1,3 +1,6 @@
|
|||
3.51: update jquery.autocomplete.min.js and css v.2.4.4 which removed $.browser
|
||||
removed jquery-migrate-1.1.1.js because of that again
|
||||
|
||||
3.50: Optimize autocomplete for 2.0, fixes
|
||||
3.49: Repair autocomplete for 2.0
|
||||
|
||||
|
|
|
@ -1,48 +1,38 @@
|
|||
.ac_results {
|
||||
/**
|
||||
* @fileOverview CSS for jquery-autocomplete, the jQuery Autocompleter
|
||||
* @author <a href="mailto:dylan@dyve.net">Dylan Verheul</a>
|
||||
* @license MIT | GPL | Apache 2.0, see LICENSE.txt
|
||||
* @see https://github.com/dyve/jquery-autocomplete
|
||||
*/
|
||||
.acResults {
|
||||
padding: 0px;
|
||||
border: 1px solid black;
|
||||
background-color: white;
|
||||
border: 1px solid WindowFrame;
|
||||
background-color: Window;
|
||||
overflow: hidden;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.ac_results ul {
|
||||
width: 100%;
|
||||
.acResults ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style-position: outside;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ac_results li {
|
||||
.acResults ul li {
|
||||
margin: 0px;
|
||||
padding: 2px 5px;
|
||||
cursor: default;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
/*
|
||||
if width will be 100% horizontal scrollbar will apear
|
||||
when scroll mode will be used
|
||||
*/
|
||||
/*width: 100%;*/
|
||||
font: menu;
|
||||
font-size: 12px;
|
||||
/*
|
||||
it is very important, if line-height not setted or setted
|
||||
in relative units scroll will be broken in firefox
|
||||
*/
|
||||
line-height: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ac_loading {
|
||||
background: white url('indicator.gif') right center no-repeat;
|
||||
.acLoading {
|
||||
background : url('indicator.gif') right center no-repeat;
|
||||
}
|
||||
|
||||
.ac_odd {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.ac_over {
|
||||
background-color: #0A246A;
|
||||
color: white;
|
||||
.acSelect {
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -72,7 +72,7 @@ class serendipity_event_freetag extends serendipity_event
|
|||
'smarty' => '2.6.7',
|
||||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('version', '3.50');
|
||||
$propbag->add('version', '3.51');
|
||||
$propbag->add('event_hooks', array(
|
||||
'frontend_fetchentries' => true,
|
||||
'frontend_fetchentry' => true,
|
||||
|
@ -875,16 +875,17 @@ class serendipity_event_freetag extends serendipity_event
|
|||
// autocomplete with serendipity 2.0
|
||||
if ($this->get_config('admin_ftayt')) {
|
||||
echo '
|
||||
function enableAutocomplete() {
|
||||
$("#properties_freetag_tagList").autocomplete(tags, {
|
||||
minChars: 0,
|
||||
multiple: true,
|
||||
scrollHeight: 200,
|
||||
matchContains: "word",
|
||||
autoFill: false
|
||||
})};
|
||||
function enableAutocomplete() {
|
||||
$("#properties_freetag_tagList").autocomplete(tags, {
|
||||
minChars: 0,
|
||||
multiple: true,
|
||||
scrollHeight: 200,
|
||||
matchContains: "word",
|
||||
autoFill: false
|
||||
})
|
||||
};
|
||||
|
||||
addLoadEvent(enableAutocomplete);
|
||||
addLoadEvent(enableAutocomplete);
|
||||
';
|
||||
}
|
||||
break;
|
||||
|
@ -921,13 +922,11 @@ class serendipity_event_freetag extends serendipity_event
|
|||
foreach ($taglist as $k => $v) {
|
||||
$wicktags[] = '\'' . addslashes($k) . '\'';
|
||||
}
|
||||
// jQuery Migrate is used due to $.browser of autocomplete plugin not being available in jquery 1.9+
|
||||
echo '
|
||||
' . ($serendipity['version'][0] == 1 ? '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>' : '') . '
|
||||
<link rel="stylesheet" type="text/css" href="' . $serendipity['baseURL'] . 'plugins/serendipity_event_freetag/jquery.autocomplete.css" />
|
||||
<script src="https://code.jquery.com/jquery-migrate-1.1.1.js"></script>
|
||||
<script type="text/javascript" language="Javascript" src="' . $serendipity['baseURL'] . 'plugins/serendipity_event_freetag/jquery.autocomplete.min.js"></script>
|
||||
<script type="text/javascript" language="Javascript">
|
||||
<script type="text/javascript" src="' . $serendipity['baseURL'] . 'plugins/serendipity_event_freetag/jquery.autocomplete.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var tags = [' . implode(',', $wicktags) . '];
|
||||
' . ($serendipity['version'][0] == 1 ? '
|
||||
function enableAutocomplete() {
|
||||
|
|
Loading…
Reference in a new issue