|
|
|
@ -43,13 +43,14 @@ $htmlHeadXtra[] = '<script> |
|
|
|
tools_visibles = []; |
|
|
|
tools_visibles = []; |
|
|
|
$.each($(".make_visible_and_invisible").parent(), function (index, item) { |
|
|
|
$.each($(".make_visible_and_invisible").parent(), function (index, item) { |
|
|
|
var element = $(item).find("a"); |
|
|
|
var element = $(item).find("a"); |
|
|
|
image = $(element[0]).find("img")[0]; |
|
|
|
image = $(element[0]).find("em")[0]; |
|
|
|
image_id = $(image).attr("id").replace("linktool_",""); |
|
|
|
image_id = $(image).attr("id").replace("linktool_",""); |
|
|
|
if (!$(element[1]).hasClass("text-muted")) { |
|
|
|
if (!$(image).hasClass("fa-eye-slash")) { |
|
|
|
tools_invisibles.push(image_id) |
|
|
|
tools_invisibles.push(image_id) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
tools_visibles.push(image_id) |
|
|
|
tools_visibles.push(image_id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
if (tools_visibles.length == 0) { |
|
|
|
if (tools_visibles.length == 0) { |
|
|
|
$(".visible-all").addClass("hidden"); |
|
|
|
$(".visible-all").addClass("hidden"); |
|
|
|
@ -69,11 +70,11 @@ $(function() { |
|
|
|
tools_visibles = []; |
|
|
|
tools_visibles = []; |
|
|
|
$.each($(".make_visible_and_invisible").parent(), function (index, item) { |
|
|
|
$.each($(".make_visible_and_invisible").parent(), function (index, item) { |
|
|
|
var element = $(item).find("a"); |
|
|
|
var element = $(item).find("a"); |
|
|
|
image = $(element[0]).find("img")[0]; |
|
|
|
image = $(element[0]).find("em")[0]; |
|
|
|
image_id = $(image).attr("id").replace("linktool_",""); |
|
|
|
image_id = $(image).attr("id").replace("linktool_",""); |
|
|
|
if (!$(element[1]).hasClass("text-muted")) { |
|
|
|
if (!$(image).hasClass("fa-eye-slash")) { |
|
|
|
tools_invisibles.push(image_id) |
|
|
|
tools_invisibles.push(image_id) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
tools_visibles.push(image_id) |
|
|
|
tools_visibles.push(image_id) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -99,7 +100,8 @@ $(function() { |
|
|
|
$.each(data,function(index,item){ |
|
|
|
$.each(data,function(index,item){ |
|
|
|
new_current_view = "'.api_get_path(WEB_IMG_PATH).'" + item.view; |
|
|
|
new_current_view = "'.api_get_path(WEB_IMG_PATH).'" + item.view; |
|
|
|
//eyes |
|
|
|
//eyes |
|
|
|
$("#linktool_"+item.id).attr("src", new_current_view); |
|
|
|
//$("#linktool_"+item.id).attr("src", new_current_view); |
|
|
|
|
|
|
|
$("#linktool_"+item.id).attr("class", item.fclass); |
|
|
|
//tool |
|
|
|
//tool |
|
|
|
$("#toolimage_" + item.id).attr("src", item.image); |
|
|
|
$("#toolimage_" + item.id).attr("src", item.image); |
|
|
|
//clase |
|
|
|
//clase |
|
|
|
@ -132,12 +134,12 @@ $(function() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$(".make_visible_and_invisible").attr("href", "javascript:void(0);"); |
|
|
|
$(".make_visible_and_invisible").attr("href", "javascript:void(0);"); |
|
|
|
$(".make_visible_and_invisible > img").click(function () { |
|
|
|
$(".make_visible_and_invisible > em").click(function () { |
|
|
|
make_visible = "visible.gif"; |
|
|
|
make_visible = "visible.gif"; |
|
|
|
make_invisible = "invisible.gif"; |
|
|
|
make_invisible = "invisible.gif"; |
|
|
|
path_name = $(this).attr("src"); |
|
|
|
//path_name = $(this).attr("src"); |
|
|
|
list_path_name = path_name.split("/"); |
|
|
|
//list_path_name = path_name.split("/"); |
|
|
|
image_link = list_path_name[list_path_name.length - 1]; |
|
|
|
//image_link = list_path_name[list_path_name.length - 1]; |
|
|
|
tool_id = $(this).attr("id"); |
|
|
|
tool_id = $(this).attr("id"); |
|
|
|
tool_info = tool_id.split("_"); |
|
|
|
tool_info = tool_id.split("_"); |
|
|
|
my_tool_id = tool_info[1]; |
|
|
|
my_tool_id = tool_info[1]; |
|
|
|
@ -157,7 +159,8 @@ $(function() { |
|
|
|
new_current_tool_image = info.image; |
|
|
|
new_current_tool_image = info.image; |
|
|
|
new_current_view = "'.api_get_path(WEB_IMG_PATH).'" + info.view; |
|
|
|
new_current_view = "'.api_get_path(WEB_IMG_PATH).'" + info.view; |
|
|
|
//eyes |
|
|
|
//eyes |
|
|
|
$("#" + tool_id).attr("src", new_current_view); |
|
|
|
//$("#" + tool_id).attr("src", new_current_view); |
|
|
|
|
|
|
|
$("#linktool_"+my_tool_id).attr("class", info.fclass); |
|
|
|
//tool |
|
|
|
//tool |
|
|
|
$("#toolimage_" + my_tool_id).attr("src", new_current_tool_image); |
|
|
|
$("#toolimage_" + my_tool_id).attr("src", new_current_tool_image); |
|
|
|
//clase |
|
|
|
//clase |
|
|
|
|