Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/almazenServer/assets/grocery_crud/js/common/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var js_libraries = [];
var fnOpenEditForm = function(this_element){
var href_url = this_element.attr("href");
var dialog_height = $(window).height() - 80;
//Close all
$(".ui-dialog-content").dialog("close");
$.ajax({
url: href_url,
data: {
is_ajax: 'true'
},
type: 'post',
dataType: 'json',
beforeSend: function() {
this_element.closest('.flexigrid').addClass('loading-opacity');
this_element.closest('.dataTablesContainer').addClass('loading-opacity');
},
complete: function(){
this_element.closest('.flexigrid').removeClass('loading-opacity');
this_element.closest('.dataTablesContainer').removeClass('loading-opacity');
},
success: function (data) {
if (typeof CKEDITOR !== 'undefined' && typeof CKEDITOR.instances !== 'undefined') {
$.each(CKEDITOR.instances,function(index){
delete CKEDITOR.instances[index];
});
}
LazyLoad.loadOnce(data.js_lib_files);
LazyLoad.load(data.js_config_files);
$.each(data.css_files,function(index,css_file){
load_css_file(css_file);
});
$("<div/>").html(data.output).dialog({
width: 910,
modal: true,
height: dialog_height,
close: function(){
$(this).remove();
},
open: function(){
var this_dialog = $(this);
$('#cancel-button').click(function(){
this_dialog.dialog("close");
});
}
});
}
});
};
var add_edit_button_listener = function () {
//If dialog AJAX forms is turned on from grocery CRUD config
if (dialog_forms) {
$('.edit_button,.add_button').unbind('click');
$('.edit_button,.add_button').click(function(){
fnOpenEditForm($(this));
return false;
});
}
}
var load_css_file = function(css_file) {
if ($('head').find('link[href="'+css_file+'"]').length == 0) {
$('head').append($('<link/>').attr("type","text/css")
.attr("rel","stylesheet").attr("href",css_file));
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0063 ]-- |