revert 22834c8 to 3.50

see commentas - it still might be worth to check this up deeper
This commit is contained in:
Ian 2014-03-14 16:30:54 +01:00
parent 22834c80b1
commit 10164f328e
4 changed files with 28 additions and 16 deletions

View file

@ -1,6 +1,3 @@
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

View file

@ -4,6 +4,7 @@
* @license MIT | GPL | Apache 2.0, see LICENSE.txt
* @see https://github.com/dyve/jquery-autocomplete
*/
.ac_results,
.acResults {
padding: 0px;
border: 1px solid WindowFrame;
@ -11,6 +12,7 @@
overflow: hidden;
}
.ac_results ul,
.acResults ul {
margin: 0px;
padding: 0px;
@ -18,6 +20,7 @@
list-style: none;
}
.ac_results li,
.acResults ul li {
margin: 0px;
padding: 2px 5px;
@ -28,10 +31,15 @@
overflow: hidden;
}
.ac_loading,
.acLoading {
background : url('indicator.gif') right center no-repeat;
}
.ac_odd {
background-color: #eee;
}
.ac_over,
.acSelect {
background-color: Highlight;
color: HighlightText;

File diff suppressed because one or more lines are too long

View file

@ -72,7 +72,7 @@ class serendipity_event_freetag extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '3.51');
$propbag->add('version', '3.50');
$propbag->add('event_hooks', array(
'frontend_fetchentries' => true,
'frontend_fetchentry' => true,
@ -886,7 +886,8 @@ function enableAutocomplete() {
};
addLoadEvent(enableAutocomplete);
';
';
}
break;
@ -922,11 +923,13 @@ addLoadEvent(enableAutocomplete);
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 type="text/javascript" src="' . $serendipity['baseURL'] . 'plugins/serendipity_event_freetag/jquery.autocomplete.min.js"></script>
<script type="text/javascript">
<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">
var tags = [' . implode(',', $wicktags) . '];
' . ($serendipity['version'][0] == 1 ? '
function enableAutocomplete() {