fix whitespaces (tabs) in javascript
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,15 +1,14 @@
|
||||
function download(id, name){
|
||||
//alert(id +" "+ name);
|
||||
$.getJSON(
|
||||
'archive.cgi?get_link='+name,
|
||||
function(data){
|
||||
//alert(data);
|
||||
$.each(data,
|
||||
function(key, val) {
|
||||
$('#'+id).html(val);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
//alert(id +" "+ name);
|
||||
$.getJSON(
|
||||
'archive.cgi?get_link='+name,
|
||||
function(data){
|
||||
//alert(data);
|
||||
$.each(data,
|
||||
function(key, val) {
|
||||
$('#'+id).html(val);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -28,11 +28,11 @@ function isChecked(selector){
|
||||
}
|
||||
|
||||
function cancel_edit_event(){
|
||||
$('#calendar').show(effect,null,effect_duration);
|
||||
$('#calendar_weekdays').show(effect,null,effect_duration);
|
||||
$('#event_editor').hide(effect,null,effect_duration);
|
||||
resizeCalendarMenu();
|
||||
return false;
|
||||
$('#calendar').show(effect,null,effect_duration);
|
||||
$('#calendar_weekdays').show(effect,null,effect_duration);
|
||||
$('#event_editor').hide(effect,null,effect_duration);
|
||||
resizeCalendarMenu();
|
||||
return false;
|
||||
}
|
||||
|
||||
function setupMenuHeight(){
|
||||
@@ -91,23 +91,23 @@ function resizeCalendarMenu(){
|
||||
//after getting menu heigth, hide calendar again
|
||||
var menuHeight=setupMenuHeight();
|
||||
|
||||
var width= $(window).width()-0;
|
||||
var height= $(window).height()-menuHeight;
|
||||
var width= $(window).width()-0;
|
||||
var height= $(window).height()-menuHeight;
|
||||
|
||||
if($('#calendar').css('display')=='none'){
|
||||
$('body #content').css('max-width', '960');
|
||||
}else{
|
||||
$('body #content').css('max-width', width);
|
||||
}
|
||||
$('div#calendar').css('width', width);
|
||||
$('div#calendar_weekdays').css('width', width);
|
||||
$('div#calendar').css('height', height);
|
||||
if($('#calendar').css('display')=='none'){
|
||||
$('body #content').css('max-width', '960');
|
||||
}else{
|
||||
$('body #content').css('max-width', width);
|
||||
}
|
||||
$('div#calendar').css('width', width);
|
||||
$('div#calendar_weekdays').css('width', width);
|
||||
$('div#calendar').css('height', height);
|
||||
|
||||
// remove border for scroll
|
||||
$('#calendar table').css('width', width-20);
|
||||
$('#calendar_weekdays table').css('width', width-20);
|
||||
$('#calendar table').css('height', height);
|
||||
|
||||
$('#calendar table').css('width', width-20);
|
||||
$('#calendar_weekdays table').css('width', width-20);
|
||||
$('#calendar table').css('height', height);
|
||||
|
||||
//set spacing between table columns
|
||||
var columnSpacing=Math.round($(window).width()/72);
|
||||
//if(columnSpacing>16)columnSpacing=16;
|
||||
@@ -118,30 +118,30 @@ function resizeCalendarMenu(){
|
||||
$('div.week').css('margin-left',-columnSpacing);
|
||||
|
||||
//calculate cell-width
|
||||
var cell_width=(width-100)/(days-1);
|
||||
var cell_width=(width-100)/(days-1);
|
||||
if($(window).width()<720){
|
||||
$('#calendar td.week').hide();
|
||||
cell_width=(width-100)/(days)-4;
|
||||
//$('#calendar div.text').css('padding-right','0');
|
||||
cell_width=(width-100)/(days)-4;
|
||||
//$('#calendar div.text').css('padding-right','0');
|
||||
}else{
|
||||
$('#calendar td.week').show();
|
||||
cell_width=(width-100)/(days)-columnSpacing;
|
||||
//$('#calendar div.text').css('padding-right','16px');
|
||||
cell_width=(width-100)/(days)-columnSpacing;
|
||||
//$('#calendar div.text').css('padding-right','16px');
|
||||
}
|
||||
|
||||
var with_param='width';
|
||||
var cw=cell_width.toFixed();
|
||||
|
||||
/*
|
||||
$('#calendar div.work').css(with_param, cw);
|
||||
$('#calendar div.play').css(with_param, cw);
|
||||
$('#calendar div.grid').css(with_param, cw);
|
||||
$('#calendar div.event').css(with_param, cw);
|
||||
$('#calendar div.schedule').css(with_param, cw);
|
||||
$('#calendar div.date').css(with_param, cw);
|
||||
$('#calendar_weekdays div.date').css(with_param, cw);
|
||||
$('#calendar div.time').css(with_param, cw);
|
||||
$('#calendar_weekdays div.time').css(with_param, cw);
|
||||
$('#calendar div.work').css(with_param, cw);
|
||||
$('#calendar div.play').css(with_param, cw);
|
||||
$('#calendar div.grid').css(with_param, cw);
|
||||
$('#calendar div.event').css(with_param, cw);
|
||||
$('#calendar div.schedule').css(with_param, cw);
|
||||
$('#calendar div.date').css(with_param, cw);
|
||||
$('#calendar_weekdays div.date').css(with_param, cw);
|
||||
$('#calendar div.time').css(with_param, cw);
|
||||
$('#calendar_weekdays div.time').css(with_param, cw);
|
||||
*/
|
||||
|
||||
//now
|
||||
@@ -149,12 +149,12 @@ function resizeCalendarMenu(){
|
||||
|
||||
//collisions
|
||||
/*
|
||||
$('#calendar div.event.error').css( with_param, cw/2.2);
|
||||
$('#calendar div.schedule.error').css(with_param, cw/2.2);
|
||||
$('#calendar div.event.error').css( with_param, cw/2.2);
|
||||
$('#calendar div.schedule.error').css(with_param, cw/2.2);
|
||||
|
||||
//shift right
|
||||
$('#calendar div.event.error.x2').css( 'margin-left', cw/2+6);
|
||||
$('#calendar div.schedule.error.x2').css('margin-left', cw/2+6);
|
||||
$('#calendar div.event.error.x2').css( 'margin-left', cw/2+6);
|
||||
$('#calendar div.schedule.error.x2').css('margin-left', cw/2+6);
|
||||
*/
|
||||
showCalendar();
|
||||
}
|
||||
@@ -505,7 +505,7 @@ function getUrl(name,value){
|
||||
function reloadCalendar(){
|
||||
var url=window.location.href;
|
||||
url=updateUrlParameters(url);
|
||||
loadCalendar(url);
|
||||
loadCalendar(url);
|
||||
}
|
||||
|
||||
function initTodayButton(){
|
||||
@@ -601,8 +601,8 @@ function initRmsPlot(){
|
||||
var id = $(this).attr("id");
|
||||
var field = id.split('_');
|
||||
var classname = field.shift();
|
||||
var project_id = field.shift();
|
||||
var studio_id = field.shift();
|
||||
var project_id = field.shift();
|
||||
var studio_id = field.shift();
|
||||
var start = $(this).attr("start")
|
||||
|
||||
if (project_id==null) return;
|
||||
@@ -671,14 +671,14 @@ function loadCalendar(url, mouseButton){
|
||||
url=updateUrlParameters(url);
|
||||
}
|
||||
url=setUrlParameter(url, 'part', '1');
|
||||
updateContainer('calendarTable', url, function(){
|
||||
updateTable();
|
||||
$('#calendarTable').css('opacity','1.0');
|
||||
$('#current_date').html(current_date);
|
||||
updateUrls(url);
|
||||
initRmsPlot();
|
||||
updateContainer('calendarTable', url, function(){
|
||||
updateTable();
|
||||
$('#calendarTable').css('opacity','1.0');
|
||||
$('#current_date').html(current_date);
|
||||
updateUrls(url);
|
||||
initRmsPlot();
|
||||
adjustColors();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function updateTable(){
|
||||
@@ -712,10 +712,10 @@ function updateTable(){
|
||||
|
||||
//$('body').css('background','#eee');
|
||||
|
||||
$(window).resize(function() {
|
||||
resizeCalendarMenu();
|
||||
$(window).resize(function() {
|
||||
resizeCalendarMenu();
|
||||
setupMenu()
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
show_schedule();
|
||||
@@ -767,8 +767,8 @@ function updateTable(){
|
||||
//disable context menu
|
||||
document.oncontextmenu = function() {return false;};
|
||||
|
||||
//edit existing event
|
||||
$(baseElement).off();
|
||||
//edit existing event
|
||||
$(baseElement).off();
|
||||
$(baseElement).on("mousedown", ".event", function(event){
|
||||
handleEvent($(this).attr("id"), event);
|
||||
});
|
||||
@@ -836,16 +836,16 @@ function updateTable(){
|
||||
// get first event_list item
|
||||
var id = $('#event_list tbody tr').first().attr('id');
|
||||
//console.log(id);
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var url='series.cgi';
|
||||
url+='?project_id='+project_id;
|
||||
url+='&studio_id='+studio_id;
|
||||
url+='&series_id='+series_id;
|
||||
url+='&action=show';
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var url='series.cgi';
|
||||
url+='?project_id='+project_id;
|
||||
url+='&studio_id='+studio_id;
|
||||
url+='&series_id='+series_id;
|
||||
url+='&action=show';
|
||||
load(url);
|
||||
}
|
||||
);
|
||||
@@ -927,22 +927,22 @@ function collision(div1, div2) {
|
||||
}
|
||||
|
||||
function handleEvent(id, event){
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var event_id =field.shift();
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var event_id =field.shift();
|
||||
|
||||
//if(checkStudio()==0)return;
|
||||
if (project_id<0) {alert("please select a project");return;}
|
||||
if (studio_id <0) {alert("please select a studio");return;}
|
||||
if (series_id <0) return;
|
||||
if (event_id <0) return;
|
||||
if (series_id <0) return;
|
||||
if (event_id <0) return;
|
||||
|
||||
var url="event.cgi?action=edit&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id;
|
||||
var url="event.cgi?action=edit&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id;
|
||||
if(event.which==1){
|
||||
load(url);
|
||||
load(url);
|
||||
}
|
||||
if(event.which==2){
|
||||
openNewTab(url);
|
||||
@@ -950,17 +950,17 @@ function handleEvent(id, event){
|
||||
}
|
||||
|
||||
function handleUnassignedEvent(id){
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var event_id =field.shift();
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var event_id =field.shift();
|
||||
|
||||
if(checkStudio()==0)return;
|
||||
if (project_id<0) return;
|
||||
if (studio_id<0) return;
|
||||
if (event_id<0) return;
|
||||
if (event_id<0) return;
|
||||
//console.log("assign series")
|
||||
$('#assign_series_events input[name="event_id"]').attr('value',event_id);
|
||||
|
||||
@@ -970,9 +970,9 @@ function handleUnassignedEvent(id){
|
||||
function handleSchedule(id, start_date, event){
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();
|
||||
|
||||
if(checkStudio()==0)return;
|
||||
if (project_id<0) return;
|
||||
@@ -980,7 +980,7 @@ function handleSchedule(id, start_date, event){
|
||||
if (series_id<0) return;
|
||||
|
||||
if(event.which==1){
|
||||
//left click: create event from schedule
|
||||
//left click: create event from schedule
|
||||
var url="event.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&start_date="+start_date;
|
||||
load(url);
|
||||
}
|
||||
@@ -992,17 +992,17 @@ function handleSchedule(id, start_date, event){
|
||||
}
|
||||
|
||||
function handleGrid(id){
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();//to be selected
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var series_id =field.shift();//to be selected
|
||||
|
||||
if(checkStudio()==0)return;
|
||||
if (project_id<0) return;
|
||||
if (studio_id<0) return;
|
||||
|
||||
var start_date=getNearestDatetime();
|
||||
var start_date=getNearestDatetime();
|
||||
$('#series_date').attr('value',start_date);
|
||||
showDateTimePicker('#series_date');
|
||||
//alert("studio "+studio_id+" "+start_date);
|
||||
@@ -1013,9 +1013,9 @@ function handleGrid(id){
|
||||
function handleWorktime(id, event){
|
||||
var field=id.split('_');
|
||||
var classname =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var schedule_id =field.shift();
|
||||
var project_id =field.shift();
|
||||
var studio_id =field.shift();
|
||||
var schedule_id =field.shift();
|
||||
|
||||
if(checkStudio()==0)return;
|
||||
if (project_id<0) return;
|
||||
@@ -1054,7 +1054,6 @@ function adjustColors(){
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
// $('#calendar').hide();
|
||||
initCalendarMenu();
|
||||
|
||||
if(calendarTable==1){
|
||||
|
||||
@@ -11,64 +11,64 @@ function getController(){
|
||||
|
||||
|
||||
function set_studio(id){
|
||||
var url=window.location.href;
|
||||
var url=window.location.href;
|
||||
//split by #
|
||||
var comment= url.split(/\#/);
|
||||
url=comment.shift();
|
||||
comment=comment.join('#');
|
||||
//split by ?
|
||||
var parts= url.split(/\?/);
|
||||
url=parts.shift();
|
||||
//split by &
|
||||
parts=parts.join('?').split(/\&+/);
|
||||
var params=[];
|
||||
if (parts.length>0){
|
||||
for (index in parts){
|
||||
//add all name value pairs but studio id
|
||||
var pair=parts[index];
|
||||
if(! pair.match(/^studio_id=/)) params.push(pair);
|
||||
}
|
||||
}
|
||||
//add studio id
|
||||
//split by ?
|
||||
var parts= url.split(/\?/);
|
||||
url=parts.shift();
|
||||
//split by &
|
||||
parts=parts.join('?').split(/\&+/);
|
||||
var params=[];
|
||||
if (parts.length>0){
|
||||
for (index in parts){
|
||||
//add all name value pairs but studio id
|
||||
var pair=parts[index];
|
||||
if(! pair.match(/^studio_id=/)) params.push(pair);
|
||||
}
|
||||
}
|
||||
//add studio id
|
||||
if(id==null)id=-1;
|
||||
if(id=='')id=-1;
|
||||
params.push('studio_id='+id);
|
||||
//append parameters to url
|
||||
url+='?'+params.join('&');
|
||||
params.push('studio_id='+id);
|
||||
//append parameters to url
|
||||
url+='?'+params.join('&');
|
||||
if ((comment!=null)&&(comment!='')) url+='#'+comment;
|
||||
window.location.href=url;
|
||||
window.location.href=url;
|
||||
}
|
||||
|
||||
function set_project(id){
|
||||
var url=window.location.href;
|
||||
var url=window.location.href;
|
||||
//split by #
|
||||
var comment= url.split(/\#/);
|
||||
url=comment.shift();
|
||||
comment=comment.join('#');
|
||||
//split by ?
|
||||
var parts= url.split(/\?/);
|
||||
url=parts.shift();
|
||||
//split by &
|
||||
parts=parts.join('?').split(/\&+/);
|
||||
var params=[];
|
||||
if (parts.length>0){
|
||||
for (index in parts){
|
||||
//add all name value pairs but project id
|
||||
var pair=parts[index];
|
||||
if(
|
||||
//split by ?
|
||||
var parts= url.split(/\?/);
|
||||
url=parts.shift();
|
||||
//split by &
|
||||
parts=parts.join('?').split(/\&+/);
|
||||
var params=[];
|
||||
if (parts.length>0){
|
||||
for (index in parts){
|
||||
//add all name value pairs but project id
|
||||
var pair=parts[index];
|
||||
if(
|
||||
(! pair.match(/^project_id=/))
|
||||
&& (! pair.match(/^studio_id=/))
|
||||
)params.push(pair);
|
||||
}
|
||||
}
|
||||
//add project id
|
||||
}
|
||||
}
|
||||
//add project id
|
||||
if(id==null)id=-1;
|
||||
if(id=='')id=-1;
|
||||
params.push('project_id='+id);
|
||||
//append parameters to url
|
||||
url+='?'+params.join('&');
|
||||
params.push('project_id='+id);
|
||||
//append parameters to url
|
||||
url+='?'+params.join('&');
|
||||
if ((comment!=null)&&(comment!='')) url+='#'+comment;
|
||||
window.location.href=url;
|
||||
window.location.href=url;
|
||||
}
|
||||
|
||||
function contains(s,t){
|
||||
@@ -78,23 +78,23 @@ function contains(s,t){
|
||||
}
|
||||
|
||||
function updateContainer(id, url, callback){
|
||||
//alert(id+":"+url);
|
||||
if (id==null) return;
|
||||
if ($("#"+id).length==0) return;
|
||||
$("#"+id).load(url, callback);
|
||||
//alert(id+":"+url);
|
||||
if (id==null) return;
|
||||
if ($("#"+id).length==0) return;
|
||||
$("#"+id).load(url, callback);
|
||||
}
|
||||
|
||||
function load(url){
|
||||
window.location=url;
|
||||
//window.location.replace(url);
|
||||
//document.location.href=url;
|
||||
//$(window).load(url);
|
||||
//$('html').load(url);
|
||||
//window.location.replace(url);
|
||||
//document.location.href=url;
|
||||
//$(window).load(url);
|
||||
//$('html').load(url);
|
||||
}
|
||||
|
||||
|
||||
function postContainer(url, parameters, callback){
|
||||
if (url!='') $.post(url, parameters, callback);
|
||||
if (url!='') $.post(url, parameters, callback);
|
||||
}
|
||||
|
||||
// init getTextWidth
|
||||
@@ -359,10 +359,10 @@ $(document).ready(
|
||||
// will be done implicitely on adding back button
|
||||
//setupMenuHeight();
|
||||
|
||||
$(window).resize(function() {
|
||||
setupMenuHeight();
|
||||
$(window).resize(function() {
|
||||
setupMenuHeight();
|
||||
setupMenu();
|
||||
});
|
||||
});
|
||||
|
||||
if(getController()=='calendar'){
|
||||
//use build-in localization
|
||||
|
||||
@@ -180,9 +180,9 @@ function changeSeries(seriesId){
|
||||
url += '&action=reassign_event';
|
||||
//alert(url);
|
||||
|
||||
$.post(
|
||||
url,
|
||||
function(data){
|
||||
$.post(
|
||||
url,
|
||||
function(data){
|
||||
var url='event.cgi?';
|
||||
url += '&project_id='+projectId;
|
||||
url += '&studio_id='+studioId;
|
||||
@@ -190,9 +190,9 @@ function changeSeries(seriesId){
|
||||
url += '&event_id='+eventId;
|
||||
url += '&action=edit';
|
||||
window.location.href = url;
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
// hide change series on abort
|
||||
@@ -237,8 +237,8 @@ function updateCheckBox(selector, value){
|
||||
}
|
||||
|
||||
function checkExcerptField(){
|
||||
var elem=$('textarea[name="excerpt"]');
|
||||
if (elem.length==0) return 0;
|
||||
var elem=$('textarea[name="excerpt"]');
|
||||
if (elem.length==0) return 0;
|
||||
var length = elem.val().length;
|
||||
console.log("length="+length);
|
||||
if (length > 250){
|
||||
@@ -246,12 +246,12 @@ function checkExcerptField(){
|
||||
}else{
|
||||
$('#excerpt_too_long').hide();
|
||||
}
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
function checkExcerptExtensionField(){
|
||||
var elem=$('textarea[name="user_excerpt"]');
|
||||
if (elem.length==0) return 0;
|
||||
var elem=$('textarea[name="user_excerpt"]');
|
||||
if (elem.length==0) return 0;
|
||||
var length = elem.val().length;
|
||||
console.log("length="+length);
|
||||
if (length > 250){
|
||||
@@ -259,21 +259,21 @@ function checkExcerptExtensionField(){
|
||||
}else{
|
||||
$('#excerpt_extension_too_long').hide();
|
||||
}
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
function checkFields(){
|
||||
if (checkExcerptField()){
|
||||
$('textarea[name="excerpt"]').on("keyup", function(){
|
||||
checkExcerptField();
|
||||
});
|
||||
}
|
||||
$('textarea[name="excerpt"]').on("keyup", function(){
|
||||
checkExcerptField();
|
||||
});
|
||||
}
|
||||
|
||||
if (checkExcerptExtensionField()){
|
||||
$('textarea[name="user_excerpt"]').on("keyup", function(){
|
||||
checkExcerptExtensionField();
|
||||
});
|
||||
}
|
||||
$('textarea[name="user_excerpt"]').on("keyup", function(){
|
||||
checkExcerptExtensionField();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(
|
||||
@@ -281,15 +281,15 @@ $(document).ready(
|
||||
initRegions(region);
|
||||
showDateTimePicker('#start_date');
|
||||
|
||||
$('input[type="checkbox"]').click(
|
||||
function(){
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','0');
|
||||
}else{
|
||||
$(this).attr('value','1');
|
||||
}
|
||||
}
|
||||
);
|
||||
$('input[type="checkbox"]').click(
|
||||
function(){
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','0');
|
||||
}else{
|
||||
$(this).attr('value','1');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
if($('#calendar').length==0){
|
||||
$('#back_to_calendar').hide();
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
show a series, its template, users and events
|
||||
show a series, its template, users and events
|
||||
*/
|
||||
|
||||
|
||||
// set checkbox values checked depending on value
|
||||
function initCheckBoxes(){
|
||||
$('div.editor input[type="checkbox"]').each(
|
||||
$('div.editor input[type="checkbox"]').each(
|
||||
function () {
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','1');
|
||||
@@ -14,26 +14,26 @@ function initCheckBoxes(){
|
||||
$(this).attr('value','0');
|
||||
$(this).attr('checked',null);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// add checkbox handler to change value on click
|
||||
function addCheckBoxHandler(){
|
||||
$('div.editor input[type="checkbox"]').click(
|
||||
$('div.editor input[type="checkbox"]').click(
|
||||
function () {
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','0');
|
||||
}else{
|
||||
$(this).attr('value','1');
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// show/hide series member edit
|
||||
function edit_series_members(series_id){
|
||||
$('.edit_series_members_'+series_id).toggle();
|
||||
$('.edit_series_members_'+series_id).toggle();
|
||||
}
|
||||
|
||||
// show/hide schedule fields depending on period type for a given schedule element
|
||||
@@ -226,7 +226,7 @@ function checkFields(){
|
||||
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
function(){
|
||||
setupLocalization(
|
||||
function(){
|
||||
addBackButton();
|
||||
@@ -245,8 +245,8 @@ $(document).ready(
|
||||
initCheckBoxes();
|
||||
addCheckBoxHandler();
|
||||
|
||||
$("#tabs").tabs();
|
||||
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
|
||||
$("#tabs").tabs();
|
||||
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
|
||||
|
||||
updateScheduleButtonName();
|
||||
initScheduleFields();
|
||||
@@ -270,7 +270,7 @@ $(document).ready(
|
||||
|
||||
$('table#schedule_table').tablesorter({
|
||||
widgets: ["filter"],
|
||||
usNumberFormat : false
|
||||
usNumberFormat : false
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
show a series, its template, users and events
|
||||
show a series, its template, users and events
|
||||
*/
|
||||
|
||||
|
||||
// set checkbox values checked depending on value
|
||||
function initCheckBoxes(){
|
||||
$('div.editor input[type="checkbox"]').each(
|
||||
$('div.editor input[type="checkbox"]').each(
|
||||
function () {
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','1');
|
||||
@@ -14,20 +14,20 @@ function initCheckBoxes(){
|
||||
$(this).attr('value','0');
|
||||
$(this).attr('checked',null);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// add checkbox handler to change value on click
|
||||
function addCheckBoxHandler(){
|
||||
$('div.editor input[type="checkbox"]').click(
|
||||
$('div.editor input[type="checkbox"]').click(
|
||||
function () {
|
||||
if ($(this).attr('value')=='1'){
|
||||
$(this).attr('value','0');
|
||||
}else{
|
||||
$(this).attr('value','1');
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -183,14 +183,14 @@ function setInputWidth(){
|
||||
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
function(){
|
||||
setupLocalization(
|
||||
function(){
|
||||
addBackButton();
|
||||
updateWeekdays();
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
initRegions(region);
|
||||
|
||||
showDateTimePicker('.datetimepicker.start', {
|
||||
@@ -204,8 +204,8 @@ $(document).ready(
|
||||
initCheckBoxes();
|
||||
addCheckBoxHandler();
|
||||
|
||||
$("#tabs").tabs();
|
||||
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
|
||||
$("#tabs").tabs();
|
||||
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
|
||||
|
||||
updateScheduleButtonName();
|
||||
initScheduleFields();
|
||||
@@ -224,7 +224,7 @@ $(document).ready(
|
||||
|
||||
$('table#schedule_table').tablesorter({
|
||||
widgets: ["filter"],
|
||||
usNumberFormat : false
|
||||
usNumberFormat : false
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
// TODO: add project_id
|
||||
function edit_event(event_id, series_id, studio_id, project_id, hide_series){
|
||||
var elem=$('#event_'+event_id);
|
||||
if(elem.hasClass('active')){
|
||||
elem.removeClass('active');
|
||||
$('#event_container_'+event_id).slideToggle(
|
||||
function(){
|
||||
$('#event_details_'+event_id).html('');
|
||||
}
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="event.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id+"&action=edit";
|
||||
if ((hide_series!=null) && (hide_series!=''))url+='&hide_series=1';
|
||||
load(url);
|
||||
}
|
||||
var elem=$('#event_'+event_id);
|
||||
if(elem.hasClass('active')){
|
||||
elem.removeClass('active');
|
||||
$('#event_container_'+event_id).slideToggle(
|
||||
function(){
|
||||
$('#event_details_'+event_id).html('');
|
||||
}
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="event.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&event_id="+event_id+"&action=edit";
|
||||
if ((hide_series!=null) && (hide_series!=''))url+='&hide_series=1';
|
||||
load(url);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ function isNewToHistory(url){
|
||||
var historyController=history[0].split('.cgi').shift();
|
||||
//remove last entry on same controller
|
||||
if(urlController==historyController){
|
||||
console.log("same controller\n"+url+"\n"+history[0])
|
||||
console.log("same controller\n"+url+"\n"+history[0])
|
||||
//var ignore=0;
|
||||
//provide back to series from series details
|
||||
//if(contains(url,'series')){
|
||||
@@ -68,8 +68,8 @@ function isNewToHistory(url){
|
||||
//console.log(ignore);
|
||||
//}
|
||||
//if (ignore==0)
|
||||
//history.shift();
|
||||
return null;
|
||||
//history.shift();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,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;
|
||||
var url='image.cgi?show='+filename;
|
||||
url += '&template=edit_image.html';
|
||||
url += '&target=' + target;
|
||||
url += '&project_id='+project_id;
|
||||
@@ -31,12 +31,12 @@ function updateImageEditor(elem, filename, target, project_id, studio_id, series
|
||||
|
||||
console.log("updateImageEditor "+url);
|
||||
|
||||
$("#img_editor").load(
|
||||
$("#img_editor").load(
|
||||
url,
|
||||
function(){
|
||||
setActiveImage(elem);
|
||||
}
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
// build search url and load
|
||||
@@ -80,11 +80,11 @@ function saveImage(id, filename) {
|
||||
$('#imageEditor #status').html('');
|
||||
console.log("save image "+id+" ");
|
||||
|
||||
var url='image.cgi?save_image='+filename+'&project_id='+project_id+'&studio_id='+studio_id;
|
||||
$.post(
|
||||
url,
|
||||
$("#save_img_"+id).serialize(),
|
||||
function(data){
|
||||
var url='image.cgi?save_image='+filename+'&project_id='+project_id+'&studio_id='+studio_id;
|
||||
$.post(
|
||||
url,
|
||||
$("#save_img_"+id).serialize(),
|
||||
function(data){
|
||||
var errorFound=0;
|
||||
data.split(/\n/).forEach(
|
||||
function(line){
|
||||
@@ -102,10 +102,10 @@ function saveImage(id, filename) {
|
||||
$('#imageEditor #status').append('<div class="ok">saved</div>');
|
||||
updateActiveImage();
|
||||
}
|
||||
hideImageDetails('img_'+id, filename);
|
||||
}
|
||||
);
|
||||
return false;
|
||||
hideImageDetails('img_'+id, filename);
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
// delete image
|
||||
@@ -120,20 +120,20 @@ function askDeleteImage(id, filename) {
|
||||
// delete image
|
||||
function deleteImage(id, filename) {
|
||||
//alert("deleteImage");return;
|
||||
$("#"+id).load('image.cgi?delete_image='+filename+'&project_id='+project_id+'&studio_id='+studio_id);
|
||||
hideImageDetails('img_'+id, filename);
|
||||
$("#"+id).hide('drop');
|
||||
return false;
|
||||
$("#"+id).load('image.cgi?delete_image='+filename+'&project_id='+project_id+'&studio_id='+studio_id);
|
||||
hideImageDetails('img_'+id, filename);
|
||||
$("#"+id).hide('drop');
|
||||
return false;
|
||||
}
|
||||
|
||||
// close all open dialogs
|
||||
function hideImageDetails(id, filename){
|
||||
try{$('#img_editor').dialog('close');}catch(e){}
|
||||
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;
|
||||
console.log("hideImageDetails, load url="+url)
|
||||
$("#"+id).load(url);
|
||||
return false;
|
||||
$("#"+id).load(url);
|
||||
return false;
|
||||
}
|
||||
|
||||
function selectImage( searchValue, imageUrl, target, project_id, studio_id, series_id, event_id, pid){
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
function add_series(){
|
||||
$('#edit_new').toggle();
|
||||
return false;
|
||||
$('#edit_new').toggle();
|
||||
return false;
|
||||
}
|
||||
|
||||
function view_series_details(series_id, studio_id, project_id){
|
||||
var elem=$('.series_details_'+series_id).prev();
|
||||
if(elem.hasClass('active')){
|
||||
elem.removeClass('active');
|
||||
$('.series_details_'+series_id).slideToggle(
|
||||
function(){
|
||||
$('#series_details_'+series_id).html('');
|
||||
}
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="series.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&action=show";
|
||||
load(url);
|
||||
}
|
||||
var elem=$('.series_details_'+series_id).prev();
|
||||
if(elem.hasClass('active')){
|
||||
elem.removeClass('active');
|
||||
$('.series_details_'+series_id).slideToggle(
|
||||
function(){
|
||||
$('#series_details_'+series_id).html('');
|
||||
}
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="series.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&action=show";
|
||||
load(url);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,39 +9,39 @@ function initRegions(region){
|
||||
return;
|
||||
}
|
||||
$.datepicker.regional['de'] = {
|
||||
closeText: 'Schließen',
|
||||
prevText: '<Zurück',
|
||||
nextText: 'Vor>',
|
||||
currentText: 'Heute',
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
weekHeader: 'KW',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
closeText: 'Schließen',
|
||||
prevText: '<Zurück',
|
||||
nextText: 'Vor>',
|
||||
currentText: 'Heute',
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
weekHeader: 'KW',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
|
||||
$.timepicker.regional['de'] = {
|
||||
timeOnlyTitle: 'Zeit wählen',
|
||||
timeText: 'Zeit',
|
||||
hourText: 'Stunde',
|
||||
minuteText: 'Minute',
|
||||
secondText: 'Sekunde',
|
||||
millisecText: 'Millisekunde',
|
||||
timezoneText: 'Zeitzone',
|
||||
currentText: 'Jetzt',
|
||||
closeText: 'Schließen',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
timeOnlyTitle: 'Zeit wählen',
|
||||
timeText: 'Zeit',
|
||||
hourText: 'Stunde',
|
||||
minuteText: 'Minute',
|
||||
secondText: 'Sekunde',
|
||||
millisecText: 'Millisekunde',
|
||||
timezoneText: 'Zeitzone',
|
||||
currentText: 'Jetzt',
|
||||
closeText: 'Schließen',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
|
||||
$.datepicker.setDefaults($.datepicker.regional[ region ]);
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
|
||||
function edit_project_assignments(name){
|
||||
if ($('#assign_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#edit_'+name).hide();
|
||||
$('#assign_'+name).show();
|
||||
}else{
|
||||
cancel_edit_project_assignments(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#assign_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#edit_'+name).hide();
|
||||
$('#assign_'+name).show();
|
||||
}else{
|
||||
cancel_edit_project_assignments(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function cancel_edit_project_assignments(name){
|
||||
$('#edit_'+name).hide();
|
||||
$('#assign_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
$('#edit_'+name).hide();
|
||||
$('#assign_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
}
|
||||
|
||||
function edit_project(name){
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#assign_'+name).hide();
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_project(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#assign_'+name).hide();
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_project(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function cancel_edit_project(name){
|
||||
$('#edit_'+name).hide();
|
||||
$('#assign_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
$('#edit_'+name).hide();
|
||||
$('#assign_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
}
|
||||
|
||||
function add_project(){
|
||||
$('.editor').hide();
|
||||
$('#edit_new').show();
|
||||
return false;
|
||||
$('.editor').hide();
|
||||
$('#edit_new').show();
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).ready(
|
||||
|
||||
@@ -1,81 +1,81 @@
|
||||
function add_series(){
|
||||
$('#edit_new').toggle();
|
||||
return false;
|
||||
$('#edit_new').toggle();
|
||||
return false;
|
||||
}
|
||||
|
||||
function view_series_details(series_id, studio_id, project_id){
|
||||
var elem=$('.series_details_'+series_id).prev();
|
||||
if(elem.hasClass('active')){
|
||||
elem.removeClass('active');
|
||||
$('.series_details_'+series_id).slideToggle(
|
||||
function(){
|
||||
$('#series_details_'+series_id).html('');
|
||||
}
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="series.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&action=show";
|
||||
load(url);
|
||||
}
|
||||
var elem=$('.series_details_'+series_id).prev();
|
||||
if(elem.hasClass('active')){
|
||||
elem.removeClass('active');
|
||||
$('.series_details_'+series_id).slideToggle(
|
||||
function(){
|
||||
$('#series_details_'+series_id).html('');
|
||||
}
|
||||
);
|
||||
}else{
|
||||
elem.addClass('active');
|
||||
var url="series.cgi?project_id="+project_id+"&studio_id="+studio_id+"&series_id="+series_id+"&action=show";
|
||||
load(url);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
function edit_series(name){
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_series(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_series(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function cancel_edit_series(name){
|
||||
$('#edit_'+name).hide();
|
||||
return false;
|
||||
$('#edit_'+name).hide();
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
function edit_scan(name){
|
||||
if ($('#scan_'+name).css('display')=='none'){
|
||||
$('#scan_'+name).show();
|
||||
}else{
|
||||
cancel_edit_scan(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#scan_'+name).css('display')=='none'){
|
||||
$('#scan_'+name).show();
|
||||
}else{
|
||||
cancel_edit_scan(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function cancel_edit_scan(name){
|
||||
$('#scan_'+name).hide();
|
||||
return false;
|
||||
$('#scan_'+name).hide();
|
||||
return false;
|
||||
}
|
||||
|
||||
function edit_schedule(name){
|
||||
if ($('#edit_schedule_'+name).css('display')=='none'){
|
||||
$('#edit_schedule_'+name).show();
|
||||
}else{
|
||||
cancel_edit_schedule(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#edit_schedule_'+name).css('display')=='none'){
|
||||
$('#edit_schedule_'+name).show();
|
||||
}else{
|
||||
cancel_edit_schedule(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function cancel_edit_schedule(name){
|
||||
$('#edit_schedule_'+name).hide();
|
||||
return false;
|
||||
$('#edit_schedule_'+name).hide();
|
||||
return false;
|
||||
}
|
||||
|
||||
function show_schedule(name){
|
||||
if ($('#show_schedule_'+name).css('display')=='none'){
|
||||
$('#show_schedule_'+name).show();
|
||||
}else{
|
||||
hide_schedule(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#show_schedule_'+name).css('display')=='none'){
|
||||
$('#show_schedule_'+name).show();
|
||||
}else{
|
||||
hide_schedule(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function hide_schedule(name){
|
||||
$('#show_schedule_'+name).hide();
|
||||
return false;
|
||||
$('#show_schedule_'+name).hide();
|
||||
return false;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
@@ -53,7 +53,7 @@ function initTable(){
|
||||
scroller_jumpToHeader: true,
|
||||
scroller_idPrefix : 's_'
|
||||
},
|
||||
usNumberFormat : false
|
||||
usNumberFormat : false
|
||||
});
|
||||
$('.tablesorter-scroller-header').css('width','95%');
|
||||
$('.tablesorter-scroller-table').css('width','95%');
|
||||
@@ -62,51 +62,51 @@ function initTable(){
|
||||
}
|
||||
|
||||
$(document).ready(
|
||||
function(){
|
||||
setupLocalization(function(){
|
||||
addBackButton();
|
||||
updateWeekdays();
|
||||
});
|
||||
function(){
|
||||
setupLocalization(function(){
|
||||
addBackButton();
|
||||
updateWeekdays();
|
||||
});
|
||||
|
||||
$("#tabs").tabs({
|
||||
activate: function(){
|
||||
console.log("set style");
|
||||
$('.tablesorter-scroller-header').css('width','95%');
|
||||
$('.tablesorter-scroller-table').css('width','95%');
|
||||
$('.tablesorter-scroller-header table').css('width','95%');
|
||||
$('.tablesorter-scroller-table table').css('width','95%');
|
||||
}
|
||||
});
|
||||
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
|
||||
$("#tabs").tabs({
|
||||
activate: function(){
|
||||
console.log("set style");
|
||||
$('.tablesorter-scroller-header').css('width','95%');
|
||||
$('.tablesorter-scroller-table').css('width','95%');
|
||||
$('.tablesorter-scroller-header table').css('width','95%');
|
||||
$('.tablesorter-scroller-table table').css('width','95%');
|
||||
}
|
||||
});
|
||||
$('#tabs').removeClass('ui-widget ui-widget-content ui-corner-all');
|
||||
|
||||
initTextWidth();
|
||||
initTextWidth();
|
||||
|
||||
setTextWidth('.datetimepicker.start', 130);
|
||||
setTextWidth('.datetimepicker.end', 130);
|
||||
setTextWidth('.datetimepicker.end_date', 90);
|
||||
setTextWidth('.datetimepicker.weekday', 20);
|
||||
setTextWidth('.datetimepicker.frequency', 20);
|
||||
setTextWidth('.datetimepicker.weekday', 20);
|
||||
setTextWidth('.datetimepicker.frequency', 20);
|
||||
|
||||
initRegions(region);
|
||||
initRegions(region);
|
||||
|
||||
showDateTimePicker('.datetimepicker.start', {
|
||||
onSelect: function(){updateWeekdays();}
|
||||
});
|
||||
showDateTimePicker('.datetimepicker.end', {
|
||||
onSelect: function(){updateWeekdays();}
|
||||
});
|
||||
showDatePicker('.datetimepicker.end_date', {
|
||||
onSelect: function(){updateWeekdays();}
|
||||
});
|
||||
showDateTimePicker('.datetimepicker.start', {
|
||||
onSelect: function(){updateWeekdays();}
|
||||
});
|
||||
showDateTimePicker('.datetimepicker.end', {
|
||||
onSelect: function(){updateWeekdays();}
|
||||
});
|
||||
showDatePicker('.datetimepicker.end_date', {
|
||||
onSelect: function(){updateWeekdays();}
|
||||
});
|
||||
|
||||
setSelectedOptions();
|
||||
setSelectedOptions();
|
||||
|
||||
showYearPicker('#show_date', {
|
||||
onSelect: function(){
|
||||
showDates();
|
||||
}
|
||||
});
|
||||
showDates();
|
||||
showYearPicker('#show_date', {
|
||||
onSelect: function(){
|
||||
showDates();
|
||||
}
|
||||
});
|
||||
showDates();
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
|
||||
function edit_studio(name){
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_studio(name);
|
||||
}
|
||||
return false;
|
||||
if ($('#edit_'+name).css('display')=='none'){
|
||||
$('#view_'+name).hide();
|
||||
$('#edit_'+name).show();
|
||||
}else{
|
||||
cancel_edit_studio(name);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function add_studio(){
|
||||
$('.editor').hide();
|
||||
$('#edit_new').show();
|
||||
return false;
|
||||
$('.editor').hide();
|
||||
$('#edit_new').show();
|
||||
return false;
|
||||
}
|
||||
function cancel_edit_studio(name){
|
||||
$('#edit_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
$('#edit_'+name).hide();
|
||||
$('#view_'+name).show();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#! /usr/bin/perl
|
||||
#!/usr/bin/perl
|
||||
|
||||
print qq{HTTP/1.0 401 Unauthorized
|
||||
Request Version: HTTP/1.0
|
||||
|
||||
Reference in New Issue
Block a user