mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Fix use of reserved javascript keyword 'new'
This commit is contained in:
parent
6e46bd7373
commit
5741811d36
2 changed files with 2 additions and 2 deletions
|
|
@ -459,7 +459,7 @@ Calendar={
|
|||
Calendar.UI.loadEvents();
|
||||
});
|
||||
},
|
||||
new:function(object){
|
||||
newCalendar:function(object){
|
||||
var tr = $(document.createElement('tr'))
|
||||
.load(oc_webroot + "/apps/calendar/ajax/newcalendar.php");
|
||||
$(object).closest('tr').after(tr).hide();
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ for($i = 0; $i < count($option_calendars); $i++){
|
|||
?>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<a href="#" onclick="Calendar.UI.Calendar.new(this);"><?php echo $l->t('New Calendar') ?></a>
|
||||
<a href="#" onclick="Calendar.UI.Calendar.newCalendar(this);"><?php echo $l->t('New Calendar') ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in a new issue