Commit 01dba370 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

change var "nw" to "gui" in the dialogs

parent d04ea3a7
......@@ -278,7 +278,7 @@
<script>
"use strict";
var nw = require("nw.gui");
var gui = require("nw.gui");
var pdgui = require("./pdgui.js");
// For translations
......@@ -743,7 +743,7 @@ console.log("fungyfungyfungyfungy");
function add_events(name) {
// closing the Window
nw.Window.get().on("close", function() {
gui.Window.get().on("close", function() {
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name + " menuclose 0");
//cancel();
......
......@@ -94,7 +94,7 @@
<script>
"use strict";
var nw = require("nw.gui");
var gui = require("nw.gui");
var pdgui = require("./pdgui.js");
// For translations
......@@ -181,7 +181,7 @@ function populate_form(attrs) {
function add_events(name) {
// closing the Window
nw.Window.get().on("close", function() {
gui.Window.get().on("close", function() {
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0");
//cancel();
......
......@@ -137,7 +137,7 @@
<script>
"use strict";
var nw = require("nw.gui");
var gui = require("nw.gui");
var pdgui = require("./pdgui.js");
// For translations
......@@ -270,7 +270,7 @@ function populate_form(attributes) {
function add_events(name) {
// closing the Window
nw.Window.get().on("close", function() {
gui.Window.get().on("close", function() {
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0");
//cancel();
......
......@@ -299,7 +299,7 @@
<script>
"use strict";
var nw = require("nw.gui");
var gui = require("nw.gui");
var pdgui = require("./pdgui.js");
// For translations
......@@ -555,7 +555,7 @@ function populate_form(attr_object) {
function add_events(name) {
// closing the Window
nw.Window.get().on("close", function() {
gui.Window.get().on("close", function() {
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0");
//cancel();
......
......@@ -254,7 +254,7 @@
</div>
<script>
"use strict";
var nw = require("nw.gui");
var gui = require("nw.gui");
var pdgui = require("./pdgui.js");
// For translations
......@@ -633,7 +633,7 @@ function add_events(name) {
// let's handle some events for this window...
// closing the Window
nw.Window.get().on("close", function() {
gui.Window.get().on("close", function() {
// this needs to do whatever the "cancel" button does
pdgui.remove_dialogwin(pd_object_callback);
this.close(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment