Skip to content

Commit

Permalink
Merge pull request #5 from menewol/master
Browse files Browse the repository at this point in the history
Update script.js
  • Loading branch information
peterfromearth committed Oct 24, 2021
2 parents b1536fa + 63456b3 commit e6a6f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function ajaxedit_getIdxByIdClass(id,classname) {
id = jQuery("#"+id).attr('id');
var $els = jQuery(tag_type+"."+classname);

for(var ii=0,kk=0;ii<$els.size();ii++){
for(var ii=0,kk=0;ii<$els.length;ii++){
if($els[ii].id == id) return kk;
kk++;
}
Expand All @@ -141,7 +141,7 @@ function ajaxedit_getIdxByIdClassNodeid(id,classname,nodeid) {
id = jQuery("#"+id).attr('id');
var $els = jQuery('#'+nodeid +" > "+tag_type+"."+classname);

for(var ii=0;ii<$els.size();ii++){
for(var ii=0;ii<$els.length;ii++){
if($els[ii].id == id) {
return ii;
}
Expand Down

0 comments on commit e6a6f99

Please sign in to comment.