diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-29 01:16:32 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-29 01:17:26 +0400 |
commit | 5875b50de055138d62252075d19e242eac608d24 (patch) | |
tree | ddafcf176e6b516b03ec5378f9ce34376fe34ec7 /apps | |
parent | 7c20aea96cd82478d86ac2830257d23b3b422c5e (diff) |
Use .empty function instead of .html("")
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/js/calendar.js | 14 | ||||
-rw-r--r-- | apps/contacts/js/interface.js | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 9e16ad61dad..ce45db22fd6 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -308,7 +308,7 @@ Calendar={ }, submitDeleteEventForm:function(url){ var post = $( "#event_form" ).serialize(); - $("#errorbox").html(""); + $("#errorbox").empty(); $.post(url, post, function(data){ if(data.status == 'success'){ $('#event').dialog('destroy').remove(); @@ -321,7 +321,7 @@ Calendar={ }, validateEventForm:function(url){ var post = $( "#event_form" ).serialize(); - $("#errorbox").html(""); + $("#errorbox").empty(); $.post(url, post, function(data){ if(data.status == "error"){ @@ -505,7 +505,7 @@ Calendar={ Calendar.Date.backward_day(); }, removeEvents:function(){ - $("#onedayview .calendar_row").html(""); + $("#onedayview .calendar_row").empty(); }, renderCal:function(){ $("#datecontrol_date").val(Calendar.UI.formatDayShort() + Calendar.space + Calendar.Date.current.getDate() + Calendar.space + Calendar.UI.formatMonthShort() + Calendar.space + Calendar.Date.current.getFullYear()); @@ -536,7 +536,7 @@ Calendar={ }, removeEvents:function(){ for( i = 0; i <= 6; i++) { - $("#oneweekview ." + Calendar.UI.weekdays[i]).html(""); + $("#oneweekview ." + Calendar.UI.weekdays[i]).empty(); } $("#oneweekview .thisday").removeClass("thisday"); }, @@ -593,7 +593,7 @@ Calendar={ }, removeEvents:function(){ $('#fourweeksview .day.thisday').removeClass('thisday'); - $('#fourweeksview .day .events').html(''); + $('#fourweeksview .day .events').empty(); }, renderCal:function(){ var calw1 = Calendar.Date.calw(); @@ -690,7 +690,7 @@ Calendar={ }, removeEvents:function(){ $('#onemonthview .day.thisday').removeClass('thisday'); - $('#onemonthview .day .events').html(''); + $('#onemonthview .day .events').empty(); }, renderCal:function(){ $("#datecontrol_date").val(Calendar.UI.formatMonthLong() + Calendar.space + Calendar.Date.current.getFullYear()); @@ -792,7 +792,7 @@ Calendar={ }, List:{ removeEvents:function(){ - this.eventContainer = $('#listview #events').html(''); + this.eventContainer = $('#listview #events').empty(); this.startdate = new Date(); this.enddate = new Date(); this.enddate.setDate(this.enddate.getDate()); diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js index 66ee6772198..3ec84a3c8ba 100644 --- a/apps/contacts/js/interface.js +++ b/apps/contacts/js/interface.js @@ -34,7 +34,7 @@ $(document).ready(function(){ if(jsondata.status == 'success'){ $('#leftcontent [data-id="'+jsondata.data.id+'"]').remove(); $('#rightcontent').data('id',''); - $('#rightcontent').html(''); + $('#rightcontent').empty(); } else{ alert(jsondata.data.message); |