/home/techb158/exp.abdallabala.com/ui/lib/settings
NameSizeModeActions
about.js79170644editdlrm
add_currency.js15390644editdlrm
add_role.js5630644editdlrm
appearance.js32750644editdlrm
editor.js10890644editdlrm
general.js17120644editdlrm
staff.js5970644editdlrm
url_rewrite.js20710644editdlrm
Edit: /home/techb158/exp.abdallabala.com/ui/lib/settings/general.js (1712B)
$(document).ready(function () { var _url = $("#_url").val(); $('#url_rewrite').change(function() { $('#additional_settings').block({ message: null }); if($(this).prop('checked')){ bootbox.confirm("Warning ! Are You sure, you want to enable URL rewrite ? If your server does not support URL Rewrite, You may face, the application stopped working and 500 Internal Server Error. In that case, you will have to manually remove .htaccess file from your root directory and set value - 0 to url_rewrite in your sys_appconfig MySQL table. Click OK, if you are sure. Or Cancel it.", function(result) { if(result){ window.location.replace( _url+'settings/url_rewrite/yes/'); } else{ location.reload(); } }); } else{ window.location.replace( _url+'settings/url_rewrite/no/'); } }); $('#console_notify_invoice_created').change(function() { $('#additional_settings').block({ message: null }); if($(this).prop('checked')){ $.post( _url+'settings/update_option/', { opt: "console_notify_invoice_created", val: "1" }) .done(function( data ) { $('#additional_settings').unblock(); location.reload(); }); } else{ $.post( _url+'settings/update_option/', { opt: "console_notify_invoice_created", val: "0" }) .done(function( data ) { $('#additional_settings').unblock(); location.reload(); }); } }); });