| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/admin/html/assets/javascript/legacy/gm/ |
Upload File : |
function GMLangEdit(){this.content_backup="",this.content_id="",$("#constant_edit_needle").ready(function(){fb&&console.log("constant_edit_needle ready"),$("#go_search").click(function(t){fb&&console.log("constant_edit_needle change"),gmLangEdit.find_needle($("#constant_edit_needle").attr("value")),$(".result_phrase_value").unbind()}),$("#constant_edit_needle").keypress(function(t){13==t.keyCode&&(gmLangEdit.find_needle($("#constant_edit_needle").attr("value")),$(".result_phrase_value").unbind())})}),this.activate_edit_field=function(){$("#gm_status").fadeIn("fast"),$(".result_phrase_value").click(function(t){var e=$(this).html();gmLangEdit.content_backup=e,gmLangEdit.content_id=$(this).attr("id"),$(this).html('<textarea name="phrase_value_content" rows="4" cols="80">'+e+"</textarea><br/>"),$(this).append('<input style="float:left;margin-right:6px" class="button" id="go_save" type="button" name="go_save" value="Speichern" />'),$(this).append('<input class="button" id="go_cancel" type="button" name="go_cancel" value="Abbrechen" />'),$(".result_phrase_value").unbind(),$("#go_save").click(function(t){var e=$(this).parent().find("textarea").val(),n=$(this).parent().attr("id");fb&&console.log("content_id:"+n+" content: "+e),jQuery.ajax({data:"content="+encodeURIComponent(e)+"&content_id="+encodeURIComponent(n),url:"request_port.php?module=AdminLangEdit&act=save_content",type:"POST",async:!0}),$(this).parent().text(e).html(),$(".result_phrase_value").click(function(t){gmLangEdit.activate_edit_field()})}),$("#go_cancel").click(function(t){fb&&console.log("go_cancel");$(this).parent().find("textarea").val();$(this).parent().html(gmLangEdit.content_backup),$(".result_phrase_value").click(function(t){gmLangEdit.activate_edit_field()})})})},this.find_needle=function(t){jQuery.ajax({data:"needle="+encodeURIComponent(t),url:"request_port.php?module=AdminLangEdit&act=search",type:"POST",async:!0,success:function(t){$("#results_box").html(t),gmLangEdit.activate_edit_field()}}).html}}