Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2012-01-11 13:40:08 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7b42368513a4ed408c8f62231415686e0d203bac
7b423685
1 parent
390df467
Fixed resource search, added index
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
3 deletions
appschema.org/app.spin.ttl
appschema.org/app.ui.ttl
appschema.org/app.www/app.css
appschema.org/app.www/app.js
www.reportinghub.no/swp/rh.ui.ttl
appschema.org/app.spin.ttl
View file @
7b42368
This diff is collapsed. Click to expand it.
appschema.org/app.ui.ttl
View file @
7b42368
This diff is collapsed. Click to expand it.
appschema.org/app.www/app.css
View file @
7b42368
...
...
@@ -29,6 +29,15 @@ body {
display
:
inline-block
!important
;
}
.appIndex
{
font-size
:
12px
;
text-align
:
right
;
}
.appIndexSummary
{
font-size
:
12px
;
}
.appLabeledObjectsBodyTD
{
padding
:
0px
0px
1px
0px
;
}
...
...
appschema.org/app.www/app.js
View file @
7b42368
...
...
@@ -73,6 +73,18 @@ function appAddRow(id, single) {
/**
* Programmatically closes and destroys the elements of a dialog that was previously
* loaded through a ui:loadable.
* @param loadId the id of the loadable surrounding the dialog
*/
function
appCloseDialog
(
loadId
)
{
var
div
=
$
(
'#div-'
+
loadId
);
div
.
dialog
(
"destroy"
);
div
.
remove
();
}
/**
* Called when the user clicks delete to delete a row from a widget.
* This completely deletes the element with the given id.
* The hidden fields to instruct the server that the given object
...
...
@@ -108,7 +120,7 @@ function appInitAutoComplete(id, hiddenId, link) {
return
item
.
label
;
},
select
:
function
(
event
,
ui
)
{
$
(
'#'
+
hiddenId
).
val
(
ui
.
item
.
resource
);
$
(
'#'
+
hiddenId
).
val
(
'<'
+
ui
.
item
.
resource
+
'>'
);
}
});
}
...
...
@@ -312,6 +324,22 @@ function appNavigateToInTab(resourceURI, queryGraphURI) {
}
// Private
function
appOpenIndexLetterDialog
(
loadId
,
letter
)
{
appLoad
(
loadId
,
{
letter
:
'"'
+
letter
+
'"'
},
function
()
{
var
div
=
$
(
'#div-'
+
loadId
);
var
title
=
div
.
attr
(
'title'
);
var
options
=
{
modal
:
true
,
title
:
title
,
width
:
500
,
height
:
400
};
div
.
dialog
(
options
);
});
}
/**
* Loads and then opens a dialog that was inserted into the current
* document using app:ResourceViewDialog.
...
...
www.reportinghub.no/swp/rh.ui.ttl
View file @
7b42368
...
...
@@ -82,8 +82,8 @@ rhswp:AGResourceViewDialog
]
]
;
ui:
childIndex
0
;
ui:
varName
"
noLinks
"
^^
xsd:
string
;
ui:
varValue
"true"
^^
xsd:
boolean
ui:
varName
"
createLinkFunction
"
^^
xsd:
string
;
ui:
varValue
<http://appschema.org/noLink>
]
;
ui:
childIndex
0
]
;
...
...
Please
register
or
login
to post a comment