Comments (8)
Good suggestion. We will need a way to track (unsaved) changes, though.
from wwwsqldesigner.
I have gotten this working, but need to understand which of my PRs you can accept so that I can find a suitable spot to PR this in. Thank you.
from wwwsqldesigner.
temporary parking spot for my code
// globals.js
window.onbeforeunload = function (e) {
if (SQL.Designer.is_dirty) {
return "" /* some browsers will show this text, some won't. */;
} else {
return undefined;
}
};
// wwwsqldesigner.js
SQL.Designer = function () {
SQL.Designer = this;
this.is_dirty = false;
SQL.Designer.prototype.dirty = function (value, remarks) {
if (value === undefined) {
value = true;
}
this.is_dirty = value;
console.log("Dirty flag set to", this.is_dirty, remarks);
};
// rowmanager.js - nothing
// row.js::update, up, down, changeComment, addRelation, removeRelation, addKey, removeKey, destroy
SQL.Designer.dirty();
// io.js
SQL.Designer.dirty(false, "serversave");
SQL.Designer.dirty(false, "loadresponse");
from wwwsqldesigner.
I have gotten this working, but need to understand which of my PRs you can accept so that I can find a suitable spot to PR this in. Thank you.
Sorry for being late all the time. As far as I can tell, there is only one PR pending right now (keyboard shortcuts); please feel free to submit this one based on the current master.
from wwwsqldesigner.
ok thanks!
from wwwsqldesigner.
@ondras this is the other one #321
from wwwsqldesigner.
bump :)
from wwwsqldesigner.
@ondras help :)
from wwwsqldesigner.
Related Issues (20)
- Collaborative version is down HOT 2
- DATATYPES.getElementsByTagName is not a function HOT 1
- Modernize the app HOT 1
- Feature Request: Use a github repo as XML/SQL storage HOT 2
- Error 500 when save to PostGreSql HOT 3
- Get "Internal Server Error" when save php-file on PHP 8 HOT 2
- Public storage
- postgresql constraints all get the same name HOT 2
- Highlight the foreign key connections when selected HOT 22
- Panning on the map has no effect HOT 6
- [SECURITY] POSTing without token HOT 6
- Switch to auto formatted code HOT 9
- Integrate with an admin panel HOT 3
- Generates only MySQL HOT 2
- mouse cursor lose focused when typing in the text fields HOT 2
- save in the server don't work HOT 4
- Support of other sql dbs like apache superset HOT 1
- Python version to automated sql designs from ORMs HOT 3
- Nullable columns
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 wwwsqldesigner.