Your IP : 216.73.216.229


Current Path : /home/jeromecohp/www/aesecure/pro/tools/mimetype/
Upload File :
Current File : /home/jeromecohp/www/aesecure/pro/tools/mimetype/mimetype.js

// @file : /pro/tools/mimetype/mimetype.js
// @version : 2.0.2
// @author : AVONTURE Christophe - christophe@aesecure.com
// @copyright : (C) 2013-2015 - Christophe Avonture - all right reserved.
// @url : http://www.aesecure.com/
// @package : 2015-02-14 13:37:48
// @license : This program is a commercial software.  You CAN'T redistribute it and/or modify it.
// Source code is the property of Christophe Avonture and can't be reused, in whole or in part, in any programs.
function reloadFilesFolders(ID){
if($('#mime_row'+ID).length>0) $('#mime_row'+ID).hide();
return true;}
$(document).ready(function (){
$('[data-toggle="popover"]').popover({trigger:'hover','placement':'top','html':true});
$("#frmMimeType").submit(function(event){ event.preventDefault();});
$('#btnSubmit').click(
function(){
alertify.log("<strong>"+aeSecure.msgWaitCanbeLong+"</strong>","",0);
$('#ajaxLoading').html("<span class='text text-info'><img src='../../../assets/loading.gif' height='16' width='16' alt=''/>&nbsp;</span>");
$('#btnSubmit').attr("disabled", "disabled").addClass("cursor-wait");
$('#frmMimeType input[name=a]').val(1);var formData=$('#frmMimeType').serialize();
$.ajaxSetup({ cache: false });
$.ajax({
type: 'POST',
url: 'mimetype.php',
async: true,
data: aeSecure.key+'&'+aeSecure.token+'='+aeSecure.token_value+'&'+formData,//folder='+$('#folder').val(),
success: function(data){
$('#tblMimeTypeBody').html(data);
$("#tblMimeType").tablesorter({
theme: "ice",
widthFixed: false,
sortMultiSortKey: "shiftKey",
sortResetKey: 'ctrlKey',
headers: {
0: {sorter: "text", filter:"true"},
1: {sorter: "text", filter:"true"},
2: {sorter: "text", filter:"true"}},
ignoreCase: true,
headerTemplate: '{content} {icon}',
widgets: ["uitheme", "filter", "stickyHeaders"],
widgetOptions: {
stickyHeaders:'',
stickyHeaders_offset:0,
stickyHeaders_cloneId:'-sticky',
stickyHeaders_addResizeEvent:true,
stickyHeaders_includeCaption:true,
stickyHeaders_zIndex:2,
stickyHeaders_attachTo:null,
stickyHeaders_filteredToTop: true,
zebra  :["ui-widget-content even", "ui-state-default odd"]
},
initWidgets: true,
sortList: [[0]]
});
$('#tblMimeType').show();
$('#ajaxLoading').html('');
$('#btnSubmit').removeAttr("disabled").removeClass("cursor-wait");
$( "span[id^='view']" ).click(function(e){
if(aeSecure.demo=='false'){
var name=this.id.substr(4);var fname=$('#filename'+name).html();
SetupTask('100699','','f='+fname+'&v=1&format=text','','','new_window');}else{
alertify.error('Functionalitly not enabled during the demo mode');}});
$( "span[id^='kill']" ).click(function(e){
if(aeSecure.demo=='false'){
var name=this.id.substr(4);var fname=$('#filename'+name).html();var sConfirm=aeSecure.msgConfirmKill;
sConfirm=sConfirm.replace("%s",fname);
sConfirm=sConfirm.replace(/\§/g,".");
alertify.set({ buttonFocus: "cancel",  buttonReverse: true  });
alertify.confirm(sConfirm, function (e){
if(e) SetupTask('100699','','f='+fname+'&k=1','','','reloadFilesFolders('+name+')');});}else{
alertify.error('Functionalitly not enabled during the demo mode');}});}});}
);});