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 @@ ...@@ -278,7 +278,7 @@
<script> <script>
"use strict"; "use strict";
var nw = require("nw.gui"); var gui = require("nw.gui");
var pdgui = require("./pdgui.js"); var pdgui = require("./pdgui.js");
// For translations // For translations
...@@ -743,7 +743,7 @@ console.log("fungyfungyfungyfungy"); ...@@ -743,7 +743,7 @@ console.log("fungyfungyfungyfungy");
function add_events(name) { function add_events(name) {
// closing the 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 // this needs to do whatever the "cancel" button does
//pdgui.pdsend(name + " menuclose 0"); //pdgui.pdsend(name + " menuclose 0");
//cancel(); //cancel();
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<script> <script>
"use strict"; "use strict";
var nw = require("nw.gui"); var gui = require("nw.gui");
var pdgui = require("./pdgui.js"); var pdgui = require("./pdgui.js");
// For translations // For translations
...@@ -181,7 +181,7 @@ function populate_form(attrs) { ...@@ -181,7 +181,7 @@ function populate_form(attrs) {
function add_events(name) { function add_events(name) {
// closing the 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 // this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0"); //pdgui.pdsend(name, "menuclose 0");
//cancel(); //cancel();
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<script> <script>
"use strict"; "use strict";
var nw = require("nw.gui"); var gui = require("nw.gui");
var pdgui = require("./pdgui.js"); var pdgui = require("./pdgui.js");
// For translations // For translations
...@@ -270,7 +270,7 @@ function populate_form(attributes) { ...@@ -270,7 +270,7 @@ function populate_form(attributes) {
function add_events(name) { function add_events(name) {
// closing the 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 // this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0"); //pdgui.pdsend(name, "menuclose 0");
//cancel(); //cancel();
......
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
<script> <script>
"use strict"; "use strict";
var nw = require("nw.gui"); var gui = require("nw.gui");
var pdgui = require("./pdgui.js"); var pdgui = require("./pdgui.js");
// For translations // For translations
...@@ -555,7 +555,7 @@ function populate_form(attr_object) { ...@@ -555,7 +555,7 @@ function populate_form(attr_object) {
function add_events(name) { function add_events(name) {
// closing the 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 // this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0"); //pdgui.pdsend(name, "menuclose 0");
//cancel(); //cancel();
......
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</div> </div>
<script> <script>
"use strict"; "use strict";
var nw = require("nw.gui"); var gui = require("nw.gui");
var pdgui = require("./pdgui.js"); var pdgui = require("./pdgui.js");
// For translations // For translations
...@@ -633,7 +633,7 @@ function add_events(name) { ...@@ -633,7 +633,7 @@ function add_events(name) {
// let's handle some events for this window... // let's handle some events for this window...
// closing the 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 // this needs to do whatever the "cancel" button does
pdgui.remove_dialogwin(pd_object_callback); pdgui.remove_dialogwin(pd_object_callback);
this.close(true); this.close(true);
......
Supports Markdown
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