filenames
use kebab-case for file names remove camelCase and snake_case
This commit is contained in:
@@ -57,7 +57,7 @@ function uploadFile(uploadButton){
|
||||
hideError();
|
||||
showProgress();
|
||||
var request=$.ajax({
|
||||
url: 'audio_recordings.cgi',
|
||||
url: 'audio-recordings.cgi',
|
||||
type: 'POST',
|
||||
data: new FormData($('#audio_recordings_upload')[0]),
|
||||
cache: false,
|
||||
@@ -1023,7 +1023,7 @@ function handleWorktime(id, event){
|
||||
if (schedule_id<0) return;
|
||||
var start_date=$(this).attr("start");
|
||||
|
||||
var url="work_time.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&schedule_id="+schedule_id+"&start_date="+start_date;
|
||||
var url="work-time.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&schedule_id="+schedule_id+"&start_date="+start_date;
|
||||
if(event.which==1){
|
||||
load(url);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ function uploadImage(){
|
||||
//remove existing image from list
|
||||
$('#imageList div.images #img_'+image_id).remove();
|
||||
|
||||
var url='show-image.cgi?project_id='+getProjectId()+'&studioId='+getStudioId()+'&type=icon&filename='+filename;
|
||||
var url='show-image.cgi?project_id='+getProjectId()+'&studio_id='+getStudioId()+'&type=icon&filename='+filename;
|
||||
|
||||
var html = '<div';
|
||||
html += ' id="img_' + image_id + '"';
|
||||
@@ -21,7 +21,7 @@ function updateActiveImage(){
|
||||
// open dialog to show or edit image properties
|
||||
function updateImageEditor(elem, filename, target, project_id, studio_id, series_id, event_id, pid){
|
||||
var url='image.cgi?show='+filename;
|
||||
url += '&template=edit_image.html';
|
||||
url += '&template=edit-image.html';
|
||||
url += '&target=' + target;
|
||||
url += '&project_id='+project_id;
|
||||
url += '&studio_id='+studio_id;
|
||||
@@ -130,7 +130,7 @@ function deleteImage(id, filename) {
|
||||
function hideImageDetails(id, filename){
|
||||
try{$('#img_editor').dialog('close');}catch(e){}
|
||||
|
||||
var url='image.cgi?show='+filename+'&template=image_single.html&project_id='+project_id+'&studio_id='+studio_id;
|
||||
var url='image.cgi?show='+filename+'&template=image-single.html&project_id='+project_id+'&studio_id='+studio_id;
|
||||
console.log("hideImageDetails, load url="+url)
|
||||
$("#"+id).load(url);
|
||||
return false;
|
||||
|
||||
@@ -27,7 +27,7 @@ function updateWeekdays(){
|
||||
function showDates(){
|
||||
var date=$('#show_date select').val();
|
||||
|
||||
var url='studio_timeslots.cgi?';
|
||||
var url='studio-timeslots.cgi?';
|
||||
url+='project_id='+getProjectId();
|
||||
url+='&studio_id='+getStudioId();
|
||||
url+='&action=show_dates';
|
||||
Reference in New Issue
Block a user