validation rule for callFunc operator
This commit is contained in:
1 parent
51966cb33f
commit
5982b5a75f
33 files changed
+64
-55
No files matched your search
@@ -32,7 +32,7 @@ function Init()
|
||||
end function
|
||||
|
||||
function OnNodeReady()
|
||||
m.appInfo = m.applicationInfo@.GetAppInfo(invalid)
|
||||
m.appInfo = m.applicationInfo@.GetAppInfo()
|
||||
|
||||
UpdateKeyValueList()
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ function OnNodeReady()
|
||||
SetNavigation(invalid, "back", m.navBar)
|
||||
SetNavigation(invalid, "left", m.navBar)
|
||||
|
||||
m.rowList@.BindNode(invalid)
|
||||
m.rowList@.BindNode()
|
||||
|
||||
OnBookmarksChange()
|
||||
m.bookmarks.ObserveField("contentChange", FuncName(OnBookmarksChange))
|
||||
|
||||
@@ -13,7 +13,7 @@ function OnNodeReady()
|
||||
SetNavigation(invalid, "back", m.navBar)
|
||||
SetNavigation(invalid, "left", m.navBar)
|
||||
|
||||
m.rowList@.BindNode(invalid)
|
||||
m.rowList@.BindNode()
|
||||
m.rowList.feeds = ParseJson(ReadAsciiFile(m.top.feedFile))
|
||||
end function
|
||||
|
||||
|
||||
@@ -266,5 +266,5 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
||||
end function
|
||||
|
||||
function Close()
|
||||
m.appController@.PopScreen(invalid)
|
||||
m.appController@.PopScreen()
|
||||
end function
|
||||
@@ -36,7 +36,7 @@ function Init()
|
||||
end function
|
||||
|
||||
function OnNodeReady()
|
||||
m.rowlist@.BindNode(invalid)
|
||||
m.rowlist@.BindNode()
|
||||
m.keyboard.ObserveField("text", FuncName(OnTextChange))
|
||||
m.suggestions.ObserveField("buttonFocused", FuncName(OnSearchButtonFocused))
|
||||
m.suggestions.ObserveField("buttonSelected", FuncName(OnSearchButtonSelected))
|
||||
@@ -151,7 +151,7 @@ function OnFiltersButtonSelected()
|
||||
searchFilters = CreateObject("roSGNode", "SearchFilters")
|
||||
m.appController@.PushScreen(searchFilters)
|
||||
searchFilters.searchScreen = m.top
|
||||
searchFilters@.BindNode(invalid)
|
||||
searchFilters@.BindNode()
|
||||
end function
|
||||
|
||||
function OnSearchButtonSelected()
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ end function
|
||||
function OpenInvidiousInstanceSettings()
|
||||
settings = CreateObject("roSGNode", "InvidiousInstanceSettings")
|
||||
m.appController@.PushScreen(settings)
|
||||
settings@.BindNode(invalid)
|
||||
settings@.BindNode()
|
||||
settings.text = m.top.value
|
||||
settings.observeField("save", FuncName(OnSaveInvidiousInstance))
|
||||
end function
|
||||
|
||||
+2
-2
@@ -70,7 +70,7 @@ end function
|
||||
function OnTestButtonSelected()
|
||||
testing = CreateObject("roSGNode", "InvidiousInstanceTesting")
|
||||
m.appController@.PushScreen(testing)
|
||||
testing@.BindNode(invalid)
|
||||
testing@.BindNode()
|
||||
testing.instance = m.top.text
|
||||
testing.run = true
|
||||
end function
|
||||
@@ -103,5 +103,5 @@ function OnSaveButtonSelected()
|
||||
end function
|
||||
|
||||
function Close()
|
||||
m.appController@.PopScreen(invalid)
|
||||
m.appController@.PopScreen()
|
||||
end function
|
||||
+1
-1
@@ -47,7 +47,7 @@ function Close()
|
||||
m.testingTask.cancel = true
|
||||
end if
|
||||
|
||||
m.appController@.PopScreen(invalid)
|
||||
m.appController@.PopScreen()
|
||||
end function
|
||||
|
||||
function RunTestsTask()
|
||||
|
||||
@@ -137,7 +137,7 @@ function CreateControl(item as object, container as object, startX as integer, s
|
||||
control.id = `preference.${item.key}`
|
||||
control.translation = [startX, startY]
|
||||
if control.hasField("binding_done")
|
||||
control@.BindNode(invalid)
|
||||
control@.BindNode()
|
||||
end if
|
||||
control@.BindPreference(m.preferences, item.key)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ function Init()
|
||||
end function
|
||||
|
||||
function OnNodeReady()
|
||||
address = m.webserver@.GetServerAddress(invalid)
|
||||
address = m.webserver@.GetServerAddress()
|
||||
isValidAddress = not StringUtils.IsNullOrEmpty(address)
|
||||
if isValidAddress
|
||||
m.top.url = address
|
||||
|
||||
Reference in new issue
Block a user