| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/administrator/components/com_staffmaster/js/ |
Upload File : |
/**
* File: staffmaster_staff_department.js
*
* Staff Master 0.7.5.1
*
* Staff Master - Staff Members and Departments Manager
*
* staffmaster_staff_department.js is used in the Edit Staff Member area
* to provide ajax support to switching staff member departments
*
* @version 0.7.5.1
* @package StaffMaster_0_7_5_1
* @subpackage admin_js
* @copyright (C) 2007-2008 Travis Hubbard
* @license http://www.gnu.org/licenses/ GNU/GPL v3
* @link http://www.systemsunited.net/
**/
jQuery(document).ready(function () {
jQuery("#department_id").change(function () {
var dept_id = jQuery(this).attr( "value");
var user_id = jQuery(this).attr( "alt");
jQuery('span#loading').show("slow");
jQuery.post("index.php?option=com_staffmaster&format=raw&task=changegroup&user_id=" + user_id + "&dept_id="+dept_id ,
function(data){
jQuery('#ordering').html( data );
jQuery('span#loading').hide("fast");
});
});
jQuery(".icon-32-save").mousedown(function() {
var name = jQuery( "input#name" ).val();
if( name.length == 0 ) {
alert( "You must enter a Name for this Staff Member if you wish to save." );
return false;
}
});
jQuery(".icon-32-apply").mousedown(function() {
var name = jQuery( "input#name" ).val();
if( name.length == 0 ) {
alert( "You must enter a Name for this Staff Member if you wish to save." );
return false;
}
});
});