Fix component metadata so that it is usable from the outside.
[GB.WEB.FORM2] * BUG: Fix component metadata. * BUG: Don't make test forms exported. They can conflict with other forms with the same name. * NEW: The Window Close event can be cancelled.
This commit is contained in:
parent
e4de616b92
commit
7475109afe
@ -2,6 +2,5 @@
|
||||
Key=gb.web.form2
|
||||
Version=3.14.90
|
||||
State=2
|
||||
Needs=EventLoop
|
||||
Requires=gb.util,gb.web,gb.util.web
|
||||
Excludes=gb.web.form
|
||||
Excludes=gb.web.form,gb.gui,gb.gui.qt,gb.qt4,gb.qt5,gb.sdl2,gb.gtk,gb.gtk3,gb.sdl
|
||||
|
@ -1,6 +1,6 @@
|
||||
' Gambas class file
|
||||
|
||||
Export
|
||||
'Export
|
||||
|
||||
Private $aFile As String[]
|
||||
Private $aStat As Stat[]
|
||||
|
@ -1,6 +1,6 @@
|
||||
' Gambas class file
|
||||
|
||||
Export
|
||||
'Export
|
||||
|
||||
|
||||
Public Sub WebTimer1_Timer()
|
||||
|
@ -923,8 +923,10 @@ Public Sub Close(Optional ReturnValue As Variant)
|
||||
|
||||
' Dim bCancel As Boolean
|
||||
Dim hWindow As WebWindow
|
||||
Dim bCancel As Boolean
|
||||
|
||||
Raise Close
|
||||
bCancel = Raise Close
|
||||
If bCancel Then Return
|
||||
|
||||
If _Window Then
|
||||
|
||||
|
@ -109,7 +109,7 @@ gw = {
|
||||
console.log('load: ' + src);
|
||||
},
|
||||
|
||||
setInnerHtml : function(id, html)
|
||||
setInnerHtml: function(id, html)
|
||||
{
|
||||
var oldDiv = $(id);
|
||||
var newDiv = oldDiv.cloneNode(false);
|
||||
@ -117,7 +117,7 @@ gw = {
|
||||
oldDiv.parentNode.replaceChild(newDiv, oldDiv);
|
||||
},
|
||||
|
||||
setOuterHtml : function(id, html)
|
||||
setOuterHtml: function(id, html)
|
||||
{
|
||||
if ($(id))
|
||||
$(id).outerHTML = html;
|
||||
@ -125,7 +125,7 @@ gw = {
|
||||
console.log('setOuterHtml: ' + id + '? ' + html);
|
||||
},
|
||||
|
||||
removeElement : function(id)
|
||||
removeElement: function(id)
|
||||
{
|
||||
var elt = $(id);
|
||||
//for (i = 0; i < id_list.length; i++)
|
||||
@ -140,7 +140,7 @@ gw = {
|
||||
//}
|
||||
},
|
||||
|
||||
insertElement : function(id, parent)
|
||||
insertElement: function(id, parent)
|
||||
{
|
||||
var elt;
|
||||
var pelt = $(parent);
|
||||
@ -153,7 +153,7 @@ gw = {
|
||||
pelt.appendChild(elt);
|
||||
},
|
||||
|
||||
setVisible : function(id, visible)
|
||||
setVisible: function(id, visible)
|
||||
{
|
||||
var elt = $(id);
|
||||
if (elt)
|
||||
@ -204,6 +204,7 @@ gw = {
|
||||
|
||||
gw.lock_id = setTimeout(function() {
|
||||
$('gw-lock').style.opacity = '1';
|
||||
gw.lock_id = undefined;
|
||||
}, 500);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user