Changeset 204 for Dev/branches
- Timestamp:
- 01/05/12 17:19:14 (13 years ago)
- Location:
- Dev/branches/Cartis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/Cartis/css/visualeditors.css
r202 r204 453 453 margin: 10px; 454 454 padding: 5px; 455 width: 730px;455 width: 640px; 456 456 } 457 457 … … 461 461 padding: 5px; 462 462 width: 200px; 463 height: 600px;464 463 } 465 464 … … 485 484 margin: 0 10px 0 10px; 486 485 } 486 487 #dbShoppingCart .content { 488 height: 415px; 489 } -
Dev/branches/Cartis/dashboardDataSelection.php
r202 r204 1 1 <?php 2 2 //Insert login check, dbi creation, etc... 3 /* 4 * TODO getInfo JSON conversie ipv HTML echo. 5 * >> Formatting of data 6 * Formatting (delete icons, aligning, button size/style, Margins/Padding, etc... 7 */ 3 8 require "classes/master.php"; 4 9 … … 62 67 <div class='largeTitle'>Info panel</div> 63 68 <div class="content" id="dbInfoPanelContent" style="height: 100px;"> 64 69 65 70 </div> 66 71 67 72 <div class="controls"> 68 73 <input type="button" class="smallButton" id="btnAddToCart" value="Add to list" onClick="addDataToList();" /> … … 75 80 <div class="largeTitle">Shopping cart</div> 76 81 <div class="content" id="shoppingCartContent"> 77 fsdfsdfsd 82 83 </div> 84 <div class="controls"> 85 <input type="button" class="smallButton" id="btnAddToCart" value="Configure Dashboard" onClick="configureDashboard();" /> 78 86 </div> 79 87 </div> -
Dev/branches/Cartis/js/dashboardScripts.js
r202 r204 105 105 function removeFromList(event) { 106 106 if (event == null || event == undefined) return; 107 107 108 var id = event.target.parentNode.id; 108 109 var uid = id.split("shoppingCartItem")[1]; 109 110 // find index, remove from object 110 111 var indexInCart = shoppingCart.contents.uids.indexOf(uid); 112 var tempTitle = shoppingCart.contents.titles[indexInCart]; 113 var cn = confirm("Are you sure you want to remove: "+tempTitle+"?"); 114 if (cn == false) return; 115 116 111 117 shoppingCart.contents.uids.splice(indexInCart, 1); 112 118 var title = shoppingCart.contents.titles.splice(indexInCart, 1)[0]; … … 114 120 //Then replace element back into relevant list 115 121 // First set element 122 116 123 var element; 117 124 switch (type){ … … 161 168 currentlySelected.type = null; 162 169 } 170 171 function configureDashboard() { 172 var data = JSON.stringify(shoppingCart); 173 var form = ce("form"); 174 form.action = "DProbeersel.php"; 175 form.method = "POST"; 176 var input = ce("input"); 177 input.type = "hidden"; 178 input.name = "selectedData"; 179 input.value = data; 180 form.appendChild(input); 181 form.submit(); 182 }
Note: See TracChangeset
for help on using the changeset viewer.