Comments (3)
Hmm, I don't think adding the DamageId would require impossible amounts of magic. Can't you just return it on the AJAX response and then add it to the element?
So instead of having these two different states of damages in the UI (some in the db, some not), we just make the UI always reflect what is indeed in the db?
from project-phoenix.
Can this be done by simply saving to db each time a description is entered, using an AJAX call? We were worried that would decrease performance and cause too many unnecessary db calls, especially if users decide to delete. But how often will a user delete a damage description they themselves just entered? And if it is an asynchronous call, the user should be able to continue their work even as the call to db is being made, no?
Isn't that supposed to be the beauty of AJAX?
from project-phoenix.
We were worried that would decrease performance and cause too many unnecessary db calls, especially if users decide to delete.
I don't think that is the issue. If we make an AJAX call to add the damage to the db, the UI doesn't reflect that. The new damage still has the "new-damage" class insteady of being tagged with its DamageID (so it can be deleted later).
If we were to save on each damage addition, we would either:
- Need to refresh on each addition.....lolno
- Need to do some jquery magic to get the DamageID of the newly inserted component and give it an ID that reflects that.
from project-phoenix.
Related Issues (20)
- Figure out bathrooms for suites HOT 5
- Add "Other" Component
- Bind images and text descriptions HOT 5
- Differentiate fines/charges HOT 8
- Accurately reflect RA vs. AC HOT 1
- Move furniture around from within the input view. HOT 2
- Legal wording HOT 4
- DateTime is misleading HOT 2
- User Error Responses HOT 3
- Add cost column to RciComponent Table HOT 1
- RD and Admin functionality documentation HOT 2
- Add logging abilities HOT 6
- Admin perspective on various signatures HOT 1
- Common Area Generation Problem HOT 2
- Top logo spaced oddly in IE HOT 1
- Issues encountered during first release HOT 3
- Bug Dump
- Update Readme to reflect recent changes
- Issues encountered during the second checkin HOT 2
- Figure out who updates the RoomAssign Table and how they do so
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from project-phoenix.