Owen Leonard
5e1bcc4aa7
This patch moves the JavaScript files in prog/en/js to prog/js. JavaScript files do not need to be in the directory which is processed by the translator. To test, apply the patch and visit various pages in the staff client to confirm that JavaScript files are still loading correctly. Revised: I intended for this to be built on top of Bug 15883 as well as Bug 16242. Now it is. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> On top of 15883 and 16241 All seems to work, js files pulled from new dir. No errors Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
24 lines
No EOL
783 B
JavaScript
24 lines
No EOL
783 B
JavaScript
$(document).ready(function(){
|
|
$("#add_field_form").hide();
|
|
$("#new_search_field").on("click",function(e){
|
|
e.preventDefault();
|
|
$("#add_field_form").show();
|
|
$(".dialog").hide();
|
|
$("#search_fields_list,#toolbar").hide();
|
|
});
|
|
$(".cancel").on("click",function(e){
|
|
e.preventDefault();
|
|
$("#add_field_form").hide();
|
|
$(".dialog").show();
|
|
$("#search_fields_list,#toolbar").show();
|
|
});
|
|
$(".field-delete").on("click",function(){
|
|
$(this).parent().parent().addClass("highlighted-row");
|
|
if( confirm( MSG_ITEM_SEARCH_DELETE_CONFIRM )){
|
|
return true;
|
|
} else {
|
|
$(this).parent().parent().removeClass("highlighted-row");
|
|
return false;
|
|
}
|
|
});
|
|
}); |