Skip to content

Commit b2cfa8f

Browse files
committed
fix Jquery update
1 parent b7c2e70 commit b2cfa8f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

public/scripts2-all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/scripts2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function loadMenu( topfind, process ) {
117117

118118
var ul = $(target).find("ul");
119119

120-
if ($(ul).size() == 0) {
120+
if ($(ul).length == 0) {
121121

122122
progressShow(topfind);
123123

@@ -177,7 +177,7 @@ function processMenu( target, data, loaded ) {
177177

178178
progressHide(target);
179179

180-
if( $(target).children("ul").size() == 0) {
180+
if( $(target).children("ul").length == 0) {
181181
// it was not already loaded in the meantime
182182
// append data (as string) to target
183183
$(target).append(data);
@@ -194,7 +194,7 @@ function doFilter(topfind) {
194194

195195
var lis = $(topfind).find("li");
196196

197-
if (lis.size() > 0) {
197+
if (lis.length > 0) {
198198
progressHide(topfind);
199199

200200
$(lis).each( function ( i, e ) {

public/search.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function processMenu( target, data, loaded ) {
5050
}
5151
data = dumpArrayToString(spl, "", 0);
5252

53-
if( $(target).children("ul").size() == 0) {
53+
if( $(target).children("ul").length == 0) {
5454
// it was not already loaded in the meantime
5555
// append data (as string) to target
5656
$(target).append(data);
@@ -71,7 +71,7 @@ function loadMenu( r, process ) {
7171

7272

7373
var ul = $(target).children("ul");
74-
if ($(ul).size() == 0) {
74+
if ($(ul).length == 0) {
7575
// TODO: $(r).children("img").attr("src", myUp + "imgs/dirload.gif");
7676
// load as html, i.e. text. jquery/javascript cannot insert an xml document (i.e. as
7777
// XML DOM tree) directly into the html document
@@ -142,7 +142,7 @@ function bindMinus( el ) {
142142
function bindMenu( el ) {
143143

144144
$(el).find("li.dir").each( function(index, el) {
145-
if ( $(el).children("ul").size() != 0) {
145+
if ( $(el).children("ul").length != 0) {
146146
bindMinus(el);
147147
} else {
148148
bindPlus(el);

src/scripts2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function loadMenu( topfind, process ) {
117117

118118
var ul = $(target).find("ul");
119119

120-
if ($(ul).size() == 0) {
120+
if ($(ul).length == 0) {
121121

122122
progressShow(topfind);
123123

@@ -177,7 +177,7 @@ function processMenu( target, data, loaded ) {
177177

178178
progressHide(target);
179179

180-
if( $(target).children("ul").size() == 0) {
180+
if( $(target).children("ul").length == 0) {
181181
// it was not already loaded in the meantime
182182
// append data (as string) to target
183183
$(target).append(data);
@@ -194,7 +194,7 @@ function doFilter(topfind) {
194194

195195
var lis = $(topfind).find("li");
196196

197-
if (lis.size() > 0) {
197+
if (lis.length > 0) {
198198
progressHide(topfind);
199199

200200
$(lis).each( function ( i, e ) {

0 commit comments

Comments
 (0)