diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/script/zoom.js | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to 'admin/survey/script/zoom.js')
-rw-r--r-- | admin/survey/script/zoom.js | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/admin/survey/script/zoom.js b/admin/survey/script/zoom.js index d43700d..debc254 100644 --- a/admin/survey/script/zoom.js +++ b/admin/survey/script/zoom.js @@ -85,7 +85,7 @@ function zoomProfileAction(action) { //$("#zoom_cover_div").show();
$("#zoom_div div#newProfileDiv").show();
} else {
- alert('Najprej izberite variable');
+ genericAlertPopup('alert_choose_variables');
}
} else if (action == 'newCancel'){
@@ -110,10 +110,10 @@ function zoomProfileAction(action) { // dropdownu dodamo nov prodil in ga izberemo
//$("#current_condition_profile").append( $("<option></option>").attr("value", newId).attr( "selected", true).text(name));
} else {
- alert(data.msg);
+ genericAlertPopup('alert_parameter_datamsg',data.msg);
}
} else {
- alert(data.msg);
+ genericAlertPopup('alert_parameter_datamsg',data.msg);
}
});
//$("#zoom_cover_div").hide();
@@ -130,7 +130,7 @@ function zoomProfileAction(action) { $("#zoom_div div#deleteProfileDiv").hide();
//$("#zoom_cover_div").fadeOut();
} else {
- alert(action);
+ genericAlertPopup('alert_parameter_action',action);
}
}
@@ -156,25 +156,14 @@ function toggleAllZoom(what) { $.post('ajax.php?t=zoom&a=togleExtended', { anketa : srv_meta_anketa_id, what:what}, function() {
if (what == 0) {
- $("#div_zoom_condition ul").parent().show();
- $("#div_zoom_condition #zoomSpritesMinus").show();
- $("#div_zoom_condition #zoomSpritesPlus").hide();
+ $("#div_zoom_condition ul").parent().removeClass('displayNone');
+ $("#div_zoom_condition #zoomSpritesMinus").removeClass('displayNone');
+ $("#div_zoom_condition #zoomSpritesPlus").addClass('displayNone');
} else {
- $("#div_zoom_condition ul").parent().hide();
- $("#div_zoom_condition #zoomSpritesMinus").hide();
- $("#div_zoom_condition #zoomSpritesPlus").show();
+ $("#div_zoom_condition ul").parent().addClass('displayNone');
+ $("#div_zoom_condition #zoomSpritesMinus").addClass('displayNone');
+ $("#div_zoom_condition #zoomSpritesPlus").removeClass('displayNone');
}
- /*
- if (what == 0) {
- $("#div_zoom_condition ul li div:nth-child(2)").show();
- $("#div_zoom_condition #zoomSpritesMinus").show();
- $("#div_zoom_condition #zoomSpritesPlus").hide();
- } else {
- $("#div_zoom_condition ul li div:nth-child(2)").hide();
- $("#div_zoom_condition #zoomSpritesMinus").hide();
- $("#div_zoom_condition #zoomSpritesPlus").show();
- }
- */
});
}
|