Changeset 77205be for src/main/resources/static/js
- Timestamp:
- 12/26/23 18:50:43 (11 months ago)
- Branches:
- master
- Children:
- 1413ee2
- Parents:
- 950fa0d
- Location:
- src/main/resources/static/js
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/admin.js
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 1 1 $(document).ready(function() { 2 var companies = {};2 let companies = []; 3 3 4 $.ajax({ 5 url: "http://localhost:8080/api/business" 6 }).then(function (data) { 4 getCompanies().then(function (data) { 7 5 companies = data; 8 var $el = $("#table_body");9 10 $.each(data, function (index, obj) {11 if(obj.businessStatus == "NEW" || obj.businessStatus == "DEACTIVATED") {12 $el.append("<tr>\n" +13 " <th scope=\"row\">" + obj.id + "</th>\n" +14 " <td>" + obj.companyName + "</td>\n" +15 " <td>" + obj.owner.firstName + " " + obj.owner.lastName + "</td>\n" +16 " <td><input class=\"form-check-input\" type=\"checkbox\" value=\"" + obj.id +"\"></td>\n" +17 " </tr>")18 }19 if (obj.businessStatus == "ACTIVE") {20 $el.append("<tr>\n" +21 " <th scope=\"row\">" + obj.id + "</th>\n" +22 " <td>" + obj.companyName + "</td>\n" +23 " <td>" + obj.owner.firstName + " " + obj.owner.lastName + "</td>\n" +24 " <td><input class=\"form-check-input\" type=\"checkbox\" checked value=\"" + obj.id +"\"></td>\n" +25 " </tr>")26 }27 });28 6 }); 29 7 30 8 $('#save_button').click(function () { 9 var companiesToSave = []; 31 10 $.each($('#table_body tr'), function(index, row) { 32 if(companies[index].businessStatus == "NEW" && $($($(row).children() [3]).children()[0]).is(':checked')) { 33 companies[index]['businessStatus'] = 'ACTIVE'; 11 if((companies[index].businessStatus === "NEW" || companies[index].businessStatus === "DEACTIVATED") && $($($(row).children() [3]).children()[0]).is(':checked')) { 12 let cloneCompany = { ...companies[index] } 13 cloneCompany['businessStatus'] = 'ACTIVE'; 14 companiesToSave.push(cloneCompany); 34 15 } 35 if(companies[index].businessStatus == "ACTIVE" && ! $($($(row).children() [3]).children()[0]).is(':checked')) { 36 companies[index]['businessStatus'] = 'DEACTIVATED'; 16 if(companies[index].businessStatus === "ACTIVE" && !$($($(row).children() [3]).children()[0]).is(':checked')) { 17 let cloneCompany = { ...companies[index] } 18 cloneCompany['businessStatus'] = 'DEACTIVATED'; 19 companiesToSave.push(cloneCompany); 37 20 } 38 21 }); 39 console.log(JSON.stringify(companies)); 22 console.log(JSON.stringify(companiesToSave)); 23 24 40 25 $.ajax({ 41 26 url: "http://localhost:8080/api/business", 42 27 type:"PATCH", 43 data: JSON.stringify(companies ),28 data: JSON.stringify(companiesToSave), 44 29 contentType:"application/json; charset=utf-8", 45 30 dataType: 'text', 46 31 success: function(succ){ 32 getCompanies().then(function (data) { 33 companies = data; 34 }); 47 35 alert( "Updates applied successfully" ); 48 36 }, … … 53 41 event.preventDefault(); 54 42 }); 43 44 function getCompanies() { 45 return $.ajax({ 46 url: "http://localhost:8080/api/business" 47 }).then(function (data) { 48 var $el = $("#table_body"); 49 $("#new_table tbody").html(""); 50 $.each(data, function (index, obj) { 51 if(obj.businessStatus == "NEW" || obj.businessStatus == "DEACTIVATED") { 52 $el.append("<tr>\n" + 53 " <th scope=\"row\">" + obj.id + "</th>\n" + 54 " <td>" + obj.companyName + "</td>\n" + 55 " <td>" + obj.owner.firstName + " " + obj.owner.lastName + "</td>\n" + 56 " <td><input class=\"form-check-input\" type=\"checkbox\" value=\"" + obj.id +"\"></td>\n" + 57 " </tr>") 58 } 59 if (obj.businessStatus == "ACTIVE") { 60 $el.append("<tr>\n" + 61 " <th scope=\"row\">" + obj.id + "</th>\n" + 62 " <td>" + obj.companyName + "</td>\n" + 63 " <td>" + obj.owner.firstName + " " + obj.owner.lastName + "</td>\n" + 64 " <td><input class=\"form-check-input\" type=\"checkbox\" checked value=\"" + obj.id +"\"></td>\n" + 65 " </tr>") 66 } 67 }); 68 return data; 69 }); 70 } 55 71 }); -
Property mode
changed from
-
src/main/resources/static/js/bootstrap.bundle.min.js
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/resources/static/js/bootstrap.bundle.min.js.map
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/resources/static/js/business_admin.js
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 1 1 $(document).ready(function() { 2 3 2 var business = {}; 4 3 5 $.ajax({ 6 url: "http://localhost:8080/api/business/me" 7 }).then(function (data) { 8 business = data; 9 var $header = $("#header"); 10 11 // header 12 $header.text($header.text() + " " + business["owner"]['firstName'] + " " + business['owner']['lastName']); 13 14 // business info 15 if(business['businessStatus'] == 'NEW') { 16 $('#new_business_warning').removeAttr("hidden"); 17 } 18 $('#business_status').val(business['businessStatus']); 19 $('#business_type').val(business['businessType']['text']); 20 21 // owner info 22 $('#firstName').val(business['owner']['firstName']); 23 $('#lastName').val(business['owner']['lastName']); 24 $('#email').val(business['owner']['email']); 25 $('#username').val(business['owner']['username']); 26 27 // services info 28 var $el = $("#predefined_services_admin_panel"); 29 $el.empty(); 30 $.each(business['services'], function (index, obj) { 31 $el.append( 32 '<div class=\"form-outline mb-4\">' + 33 ' <div class="row">' + 34 ' <div class="col-md-6">\n' + 35 ' <input class="form-check-input" type="checkbox" checked value=\"' + obj.id + '\" id=\"' + obj.id + '\">\n' + 36 ' <label class="form-check-label" for=\"' + obj.id + '\">\n' + 37 obj['serviceType'].name + 38 ' </label>\n' + 39 ' </div>' + 40 ' <div class=\"form-outline col-md-2 d-grid\">' + 41 ' <input type=\"text\" id=\"' + obj.id + obj['serviceType'].name.replace(/\s/g, "") + "duration" + '\" class=\"form-control\" placeholder="time" value=\"' + obj.duration + '" />' + 42 ' </div>' + 43 ' <div class=\"form-outline col-md-2 d-grid\">' + 44 ' <input type=\"text\" id=\"' + obj.id + obj['serviceType'].name.replace(/\s/g, "") + "price" + '\" class=\"form-control\" placeholder="price" value=\"' + obj.price + '" />' + 45 ' </div>' + 46 ' </div>' + 47 '</div>'); 48 }); 49 }); 4 getBusinessInfo(business); 5 6 getAppointments(); 50 7 51 8 $("#add_service").click(function () { … … 122 79 $("#update_owner_button").click(function() { 123 80 businesses = []; 124 console.log("Gjoko");125 81 business['owner']['firstName'] = $('#firstName').val(); 126 82 business['owner']['lastName'] = $('#lastName').val(); 127 83 business['owner']['email'] = $('#email').val(); 84 business['owner']['phoneNumber'] = $('#phoneNumber').val(); 128 85 business['owner']['username'] = $('#username').val(); 129 86 … … 147 104 event.preventDefault(); 148 105 }); 106 107 function cancelAppointment(appointmentId) { 108 if (confirm("Are you sure you want to cancel the appointment?")) { 109 $.ajax({ 110 url: "http://localhost:8080/api/appointment/" + appointmentId, 111 type:"DELETE" 112 }).success(function (data) { 113 alert("Appointment successfully canceled.") 114 getAppointments(); 115 }).error(function (error) { 116 alert("Something went wrong."); 117 }); 118 } 119 } 120 121 function getAppointments() { 122 $.ajax({ 123 url: "http://localhost:8080/api/appointment/future/me" 124 }).then(function (data) { 125 console.log(data); 126 var $el = $("#bookings-table-body"); 127 $el.empty(); 128 $.each(data, function (index, obj) { 129 var element = 130 '<tr>' + 131 ' <th scope="row">' + (parseInt(index) + 1) + '</th>' + 132 ' <td>' + obj['fullName'] + '</td>' + 133 ' <td>' + obj['email'] + '</td>' + 134 ' <td>' + obj['phoneNumber'] + '</td>' + 135 ' <td>' + obj['timePeriod'] + '</td>' + 136 ' <td>' + obj['serviceName'] + '</td>'; 137 138 switch (obj['status']) { 139 case 'NEW': 140 element += ' <td><button type="button" class="btn btn-danger" onclick="cancelAppointment(' + obj['appointmentId'] + ')">Cancel appointment</button></td>'; 141 break; 142 case 'CANCELLED_BY_CUSTOMER': 143 element += ' <td><button type="button" class="btn btn-secondary" disabled>Cancelled by customer</button></td>'; 144 break; 145 case 'CANCELLED_BY_BUSINESS_OWNER': 146 element += ' <td><button type="button" class="btn btn-secondary" disabled>Cancelled by business owner</button></td>'; 147 break; 148 } 149 element+='</tr>'; 150 151 $el.append(element); 152 }); 153 }); 154 } 155 156 function getBusinessInfo(business) { 157 $.ajax({ 158 url: "http://localhost:8080/api/business/me" 159 }).then(function (data) { 160 business = data; 161 var $header = $("#header"); 162 163 // header 164 $header.text($header.text() + " " + business["owner"]['firstName'] + " " + business['owner']['lastName']); 165 166 // business info 167 if(business['businessStatus'] == 'NEW') { 168 $('#new_business_warning').removeAttr("hidden"); 169 } 170 $('#business_status').val(business['businessStatus']); 171 $('#business_type').val(business['businessType']['text']); 172 173 // owner info 174 $('#firstName').val(business['owner']['firstName']); 175 $('#lastName').val(business['owner']['lastName']); 176 $('#phoneNumber').val(business['owner']['phoneNumber']); 177 $('#email').val(business['owner']['email']); 178 $('#username').val(business['owner']['username']); 179 180 // services info 181 var $el = $("#predefined_services_admin_panel"); 182 $el.empty(); 183 $.each(business['services'], function (index, obj) { 184 $el.append( 185 '<div class=\"form-outline mb-4\">' + 186 ' <div class="row">' + 187 ' <div class="col-md-6">\n' + 188 ' <input class="form-check-input" type="checkbox" checked value=\"' + obj.id + '\" id=\"' + obj.id + '\">\n' + 189 ' <label class="form-check-label" for=\"' + obj.id + '\">\n' + obj['serviceType'].name + '</label>\n' + 190 ' </div>' + 191 ' <div class=\"form-outline col-md-2 d-grid\">' + 192 ' <input type=\"text\" id=\"' + obj.id + obj['serviceType'].name.replace(/\s/g, "") + "duration" + '\" class=\"form-control\" placeholder="time" value=\"' + obj.duration + '" />' + 193 ' </div>' + 194 ' <div class=\"form-outline col-md-2 d-grid\">' + 195 ' <input type=\"text\" id=\"' + obj.id + obj['serviceType'].name.replace(/\s/g, "") + "price" + '\" class=\"form-control\" placeholder="price" value=\"' + obj.price + '" />' + 196 ' </div>' + 197 ' </div>' + 198 '</div>'); 199 }); 200 }); 201 } -
Property mode
changed from
-
src/main/resources/static/js/fullcalendar.js
r950fa0d r77205be 332 332 /* View Rendering 333 333 -----------------------------------------------------------------------------*/ 334 335 336 334 function changeView(newViewName) { 337 335 if (!currentView || newViewName != currentView.name) { … … 480 478 // TODO: going forward, most of this stuff should be directly handled by the view 481 479 482 483 480 function refetchEvents() { // can be called as an API method 484 481 clearEvents(); … … 538 535 } 539 536 540 541 542 537 /* Header Updating 543 538 -----------------------------------------------------------------------------*/ 544 545 546 539 function updateTitle() { 547 540 header.updateTitle(currentView.title); -
src/main/resources/static/js/homepage.js
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 3 3 var businesses = {}; 4 4 var date = new Date(); 5 var selectedServices = {}; 6 var events = []; 5 7 var d = date.getDate(); 6 8 var m = date.getMonth(); … … 69 71 70 72 $("#companyType").change(function () { 73 resetRatingCard(); 71 74 var selectedVal = $(this).find(':selected').val(); 72 75 var selectedObj = businessTypes[selectedVal - 1]; … … 75 78 }).then(function (data) { 76 79 businesses = data; 77 console.log(data);78 80 var $el = $("#company"); 79 81 var $servicesEl = $("#service"); … … 84 86 $el.append("<option value=" + obj.id + ">" + obj.companyName + "</option>"); 85 87 }); 88 89 if (data && data.length === 1) { 90 selectedServices = data[0]["services"]; 91 resetAndAppendServices(selectedServices); 92 } 86 93 }); 87 94 }); 88 95 89 96 $("#company").change(function () { 97 resetRatingCard(); 90 98 var selectedVal = $(this).find(':selected').val(); 91 99 $.ajax({ 92 100 url: "http://localhost:8080/api/appointment/business/" + selectedVal 93 101 }).then(function (data) { 94 console.log(data); 95 var $el = $("#service"); 96 emptyDropdown($el); 97 98 var services = businesses.find(item => item.id == selectedVal)['services']; 99 console.log(services); 100 101 $.each(services, function (index, obj) { 102 $el.append("<option value=" + obj.id + ">" + obj.serviceType.name + "</option>"); 103 }); 104 }); 105 }); 106 102 // get already stored service from in-memory 103 selectedServices = businesses.find(item => item.id == selectedVal)['services']; 104 resetAndAppendServices(selectedServices); 105 }); 106 $('#calendar').fullCalendar('refetchEvents'); 107 }); 108 109 $("#service").change(function () { 110 var selectedVal = $("#service").find(':selected').val(); 111 var service = selectedServices.find(item => item.id == selectedVal); 112 setRatingCard(service['serviceType']['name'], service['rating'], service['reviewsCount'], selectedVal); 113 }); 114 115 $("#startdatetime").change(function() { 116 var date = new Date(document.getElementById("startdatetime").valueAsDate); 117 var selectedVal = $("#service").find(':selected').val(); 118 var minutes = selectedServices.find(item => item.id == selectedVal)['duration']; 119 date.setMinutes(date.getMinutes() + minutes); 120 document.getElementById("enddatetime").value = date.toISOString().slice(0, 16); 121 }); 107 122 108 123 /* initialize the calendar 109 124 -----------------------------------------------------------------*/ 110 111 var calendar = $('#calendar').fullCalendar({ 125 loadCalendar(); 126 127 resetRatingCard(); 128 129 $("#createAppointment").click(function() { 130 var appointment = {}; 131 var business = {}; 132 business['id'] = parseInt($("#company").val()); 133 appointment['service'] = {'id': parseInt($("#service").val()), 'business':business}; 134 appointment['startTime'] = $("#startdatetime").val(); 135 136 $.ajax({ 137 url: "http://localhost:8080/api/appointment", 138 type:"POST", 139 data: JSON.stringify(appointment), 140 contentType:"application/json; charset=utf-8", 141 dataType: 'text', 142 success: function(succ){ 143 alert("Successful appointment!"); 144 var companyId = parseInt($("#company").find(':selected').val()); 145 getAppointmentsByBusiness(companyId, events); 146 destroyCalendar(); 147 loadCalendar(events); 148 }, 149 error: function(error) { 150 alert(error.responseText); 151 } 152 }); 153 }); 154 155 }); 156 157 document.getElementById("login").addEventListener("click", function(event){ 158 window.location = "/login"; 159 }); 160 161 function resetAndAppendServices(services) { 162 var $el = $("#service"); 163 emptyDropdown($el); 164 165 $.each(services, function (index, obj) { 166 $el.append("<option value=" + obj.id + ">" + obj.serviceType.name + "</option>"); 167 }); 168 } 169 170 function emptyDropdown(element) { 171 var defaultOption = element.children().get(0); 172 element.children().remove(); 173 element.append(defaultOption); 174 } 175 176 /*loadCalendar([{'title': 'Gjoko', 'start': '2023-09-01 01:00:00', 'end': '2023-09-01 01:30:00', 'allDay':false, 'color': 'blue'}])*/ 177 178 function getAppointmentsByBusiness(businessId, events) { 179 $.ajax({ 180 url: "http://localhost:8080/api/appointment/business/" + businessId, 181 type:"GET", 182 contentType:"application/json; charset=utf-8", 183 dataType: 'text', 184 success: function(data){ 185 // reset events 186 events = []; 187 console.log(data); 188 $.each(JSON.parse(data), function (index, object) { 189 var event = {} 190 event['title'] = object['title']; 191 event['start'] = object['startTime'].replace('T', ' '); 192 event['end'] = object['endTime'].replace('T', ' '); 193 event['allDay'] = false; 194 event['color'] = 'blue'; 195 events.push(event); 196 }); 197 198 }, 199 error: function(error) { 200 console.log(error.responseText); 201 } 202 }); 203 } 204 205 function loadCalendar(events) { 206 $('#calendar').fullCalendar({ 112 207 header: { 113 208 left: 'title', … … 178 273 179 274 }, 180 181 events: [ 182 { 183 title: 'All Day Event', 184 start: new Date(y, m, 1) 185 }, 186 { 187 id: 999, 188 title: 'Repeating Event', 189 start: new Date(y, m, d-3, 16, 0), 190 allDay: false, 191 className: 'info' 192 }, 193 { 194 id: 999, 195 title: 'Repeating Event', 196 start: new Date(y, m, d+4, 16, 0), 197 allDay: false, 198 className: 'info' 199 }, 200 { 201 title: 'Meeting', 202 start: new Date(y, m, d, 10, 30), 203 allDay: false, 204 className: 'info' 205 }, 206 { 207 title: 'Lunch', 208 start: new Date(y, m, d, 12, 0), 209 end: new Date(y, m, d, 14, 0), 210 allDay: false, 211 className: 'info' 212 }, 213 { 214 title: 'Birthday Party', 215 start: new Date(y, m, d+1, 19, 0), 216 end: new Date(y, m, d+1, 22, 30), 217 allDay: false, 218 }, 219 { 220 title: 'Click for Google', 221 start: new Date(y, m, 28), 222 end: new Date(y, m, 29), 223 url: 'http://google.com/', 224 className: 'success' 225 } 226 ], 227 }); 228 229 $("#createAppointment").click(function() { 230 var appointment = {}; 231 appointment['business'] = {'id': parseInt($("#company").val())}; 232 appointment['service'] = {'id': parseInt($("#service").val())}; 233 appointment['startTime'] = $("#startdatetime").val(); 234 235 $.ajax({ 236 url: "http://localhost:8080/api/appointment", 237 type:"POST", 238 data: JSON.stringify(appointment), 239 contentType:"application/json; charset=utf-8", 240 dataType: 'text', 241 success: function(succ){ 242 console.log('success'); 243 }, 244 error: function(err) { 245 console.log(JSON.stringify(err)); 246 } 247 }); 248 }) 249 250 }); 251 252 document.getElementById("login").addEventListener("click", function(event){ 253 window.location = "/login"; 254 }); 255 256 function emptyDropdown(element) { 257 var defaultOption = element.children().get(0); 258 element.children().remove().end().append(defaultOption); 259 } 275 events: function (start, end, callback) { 276 var selectedVal = $("#company").find(':selected').val(); 277 if(!isNaN(parseInt(selectedVal))) { 278 $.ajax({ 279 url: "http://localhost:8080/api/appointment/business/" + selectedVal, 280 type:"GET", 281 contentType:"application/json; charset=utf-8", 282 dataType: 'text', 283 success: function(data){ 284 // reset events 285 var events = []; 286 $.each(JSON.parse(data), function (index, object) { 287 var event = {} 288 event['title'] = object['title']; 289 event['start'] = object['startTime'].replace('T', ' '); 290 event['end'] = object['endTime'].replace('T', ' '); 291 event['allDay'] = false; 292 event['color'] = '#3b71ca'; 293 event['textColor'] = '#FFFFFF'; 294 events.push(event); 295 }); 296 // load events 297 callback(events); 298 }, 299 error: function(error) { 300 console.log(error.responseText); 301 } 302 }); 303 } 304 }, 305 }); 306 } 307 308 function goToProfile() { 309 window.location = "/customer_admin"; 310 } 311 312 function destroyCalendar() { 313 $('#calendar').fullCalendar('destroy'); 314 } 315 316 function resetRatingCard() { 317 $('#rating-service-name').empty(); 318 $('#rating-value').empty(); 319 $('#rating-count').empty(); 320 $('#reviews-li').remove(); 321 } 322 323 function setRatingCard(name, value, count, serviceId) { 324 $('#rating-service-name').text(name); 325 $('#rating-value').text(value); 326 $('#rating-count').text(count); 327 $('#reviews-li').remove(); 328 getReviewsForService(serviceId); 329 330 } 331 332 function getReviewsForService(serviceId){ 333 $.ajax({ 334 url: "http://localhost:8080/api/review/" + serviceId 335 }).then(function (data) { 336 var $el = $("#reviewsModalBody"); 337 $('#reviews-ul').append($('<td class="form-outline mb-4"><button type="button" id="reviews-li" class="btn btn-primary btn-block" data-bs-toggle="modal" data-bs-target="#showReviewsModal">Checkout reviews</button></td>')); 338 $el.empty(); 339 340 $.each(data, function (index, obj) { 341 var element = '<div class="card m-3" style="max-width: 300px; padding: 0;">'; 342 element += '<div class="card-header" style="' + generateHeaderStyle(obj['rating']) + '">' + generateStars(obj['rating']) + '</div>'; 343 element += '<ul class="list-group list-group-flush">'; 344 element += '<li class="list-group-item"><i><b>Business:</b></i> ' + obj['businessName'] + '</li>'; 345 element += '<li class="list-group-item"><i><b>Service:</b></i> ' + obj['serviceName'] + '</li>'; 346 element += '<li class="list-group-item"><i><b>Reviewer:</b></i> ' + obj['customerName'] + '</li>'; 347 element += '<li class="list-group-item"><i><b>Comment:</b></i> ' + obj['comment'] + '</li>'; 348 element += '<li class="list-group-item"><small class="text-body-secondary"><i>Created:</i> ' + obj['created'] + '</small></li>'; 349 element += '</ul>'; 350 element += '</div>'; 351 352 $el.append(element); 353 }); 354 }); 355 } 356 357 function generateStars(number) { 358 return '☆'.repeat(number); 359 } 360 361 function generateHeaderStyle(number) { 362 var style = ''; 363 switch (number) { 364 case 5: 365 style = 'background-color: RGBA(13,110,253,var(--bs-bg-opacity,1)) !important; '; 366 break; 367 case 4: 368 style = 'background-color: RGBA(25,135,84,var(--bs-bg-opacity,1)) !important; '; 369 break; 370 case 3: 371 style = 'background-color: RGBA(108,117,125,var(--bs-bg-opacity,1)) !important; '; 372 break; 373 case 2: 374 style = 'background-color: RGBA(255,193,7,var(--bs-bg-opacity,1)) !important; '; 375 break; 376 case 1: 377 style = 'background-color: RGBA(220,53,69,var(--bs-bg-opacity,1)) !important; '; 378 break; 379 } 380 381 style += ' color: #fff !important;' 382 return style; 383 } -
Property mode
changed from
-
src/main/resources/static/js/login.js
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/resources/static/js/logout.js
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/resources/static/js/register_business.js
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 75 75 ownerObj['username'] = $('#username').val(); 76 76 ownerObj['password'] = $('#password').val(); 77 ownerObj['phoneNumber'] = $('#phoneNumber').val(); 77 78 businessObj['owner'] = ownerObj; 78 79 … … 102 103 }); 103 104 businessObj['services'] = servicesObj; 105 console.log(businessObj); 104 106 $.ajax({ 105 107 url: "http://localhost:8080/api/business", … … 108 110 contentType:"application/json; charset=utf-8", 109 111 dataType: 'text', 110 success: function(succ ){112 success: function(success){ 111 113 alert( "Well done! You have finished the registration process. " + 112 114 "Please check periodically to see if the company has been approved." ); -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.