Giter Club home page Giter Club logo

Comments (8)

ondras avatar ondras commented on May 28, 2024

Good suggestion. We will need a way to track (unsaved) changes, though.

from wwwsqldesigner.

bilogic avatar bilogic commented on May 28, 2024

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.

bilogic avatar bilogic commented on May 28, 2024

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.

ondras avatar ondras commented on May 28, 2024

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.

bilogic avatar bilogic commented on May 28, 2024

ok thanks!

from wwwsqldesigner.

bilogic avatar bilogic commented on May 28, 2024

@ondras this is the other one #321

from wwwsqldesigner.

bilogic avatar bilogic commented on May 28, 2024

bump :)

from wwwsqldesigner.

bilogic avatar bilogic commented on May 28, 2024

@ondras help :)

from wwwsqldesigner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.