marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject [5/5] git commit: Fixed two small bugs in the admin-ui (core/context and kiwi-reasoner/config)
Date Thu, 19 Dec 2013 14:49:06 GMT
Fixed two small bugs in the admin-ui (core/context and kiwi-reasoner/config)


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/883aa783
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/883aa783
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/883aa783

Branch: refs/heads/develop
Commit: 883aa78347133dcf084d63dd9bb5b8d177840f7e
Parents: 97425c6
Author: Jakob Frank <jakob@apache.org>
Authored: Thu Dec 19 15:47:58 2013 +0100
Committer: Jakob Frank <jakob@apache.org>
Committed: Thu Dec 19 15:47:58 2013 +0100

----------------------------------------------------------------------
 .../marmotta-core/src/main/resources/web/admin/contexts.html   | 2 +-
 .../src/main/resources/web/admin/widget/conf_reasoner.js       | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/883aa783/platform/marmotta-core/src/main/resources/web/admin/contexts.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/resources/web/admin/contexts.html b/platform/marmotta-core/src/main/resources/web/admin/contexts.html
index 7a0127f..4a94291 100644
--- a/platform/marmotta-core/src/main/resources/web/admin/contexts.html
+++ b/platform/marmotta-core/src/main/resources/web/admin/contexts.html
@@ -64,7 +64,7 @@
                 $("<tr>", {"id": "context_"+id})
                     .append($("<td>", {"text": label}))
                     .append($("<td>").append($("<a>", {"text": uri, "href": uri})))
-                    .append($("<td>").append(size?$("<span>", {"text":size+"
triple"+(size==1?"":"s")}):$("<em>", {"text":"unknown"})))
+                    .append($("<td>").append(size!==undefined?$("<span>", {"text":size+"
triple"+(size==1?"":"s")}):$("<em>", {"text":"unknown"})))
                     .append(appendDownloadLinks($("<td>"), ctx))
                     .append($("<td>").append($("<button>", {"text": "delete"}).click(deleteContext(uri,
id, size))))
                     .appendTo($("table#contexts > tbody:last"));        

http://git-wip-us.apache.org/repos/asf/marmotta/blob/883aa783/platform/marmotta-reasoner-kiwi/src/main/resources/web/admin/widget/conf_reasoner.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-reasoner-kiwi/src/main/resources/web/admin/widget/conf_reasoner.js
b/platform/marmotta-reasoner-kiwi/src/main/resources/web/admin/widget/conf_reasoner.js
index 9d88207..a2b0587 100644
--- a/platform/marmotta-reasoner-kiwi/src/main/resources/web/admin/widget/conf_reasoner.js
+++ b/platform/marmotta-reasoner-kiwi/src/main/resources/web/admin/widget/conf_reasoner.js
@@ -38,7 +38,7 @@
         var settings = {
             host: 'http://localhost:8080/LMF/',
             samples :{
-                skos:"@prefix: skos: <http://www.w3.org/2004/02/skos/core#>\n\n($1
skos:broader $2) -> ($1 skos:broaderTransitive $2)\n($1 skos:narrower $2) -> ($1 skos:narrowerTransitive
$2)\n($1 skos:broaderTransitive $2), ($2 skos:broaderTransitive $3) -> ($1 skos:broaderTransitive
$3)\n($1 skos:narrowerTransitive $2), ($2 skos:narrowerTransitive $3) -> ($1 skos:narrowerTransitive
$3)\n($1 skos:broader $2) -> ($2 skos:narrower $1)\n($1 skos:narrower $2) -> ($2 skos:broader
$1)\n($1 skos:broader $2) -> ($1 skos:related $2)\n($1 skos:narrower $2) -> ($1 skos:related
$2)\n($1 skos:related $2) -> ($2 skos:related $1)",
+                skos:"@prefix skos: <http://www.w3.org/2004/02/skos/core#>\n\n($1 skos:broader
$2) -> ($1 skos:broaderTransitive $2)\n($1 skos:narrower $2) -> ($1 skos:narrowerTransitive
$2)\n($1 skos:broaderTransitive $2), ($2 skos:broaderTransitive $3) -> ($1 skos:broaderTransitive
$3)\n($1 skos:narrowerTransitive $2), ($2 skos:narrowerTransitive $3) -> ($1 skos:narrowerTransitive
$3)\n($1 skos:broader $2) -> ($2 skos:narrower $1)\n($1 skos:narrower $2) -> ($2 skos:broader
$1)\n($1 skos:broader $2) -> ($1 skos:related $2)\n($1 skos:narrower $2) -> ($1 skos:related
$2)\n($1 skos:related $2) -> ($2 skos:related $1)",
                 rdfs:"@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n@prefix
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n\n($1 rdfs:subClassOf $2), ($2 rdfs:subClassOf
$3) -> ($1 rdfs:subClassOf $3)\n($1 rdfs:subPropertyOf $2), ($2 rdfs:subPropertyOf $3)
-> ($1 rdfs:subPropertyOf $3)\n($1 rdf:type $2), ($2 rdfs:subClassOf $3) -> ($1 rdf:type
$3)\n($p rdfs:range $r), ($1 $p $2) -> ($2 rdf:type $r)\n($p rdfs:domain $d), ($1 $p $2)
-> ($1 rdf:type $d)"
             },
             loader:"../../core/public/img/ajax-loader_small.gif"
@@ -69,6 +69,10 @@
         }
 
         var do_upload = function() {
+            var editor = $(program_input)[0]._cmEditor || {};
+            if (editor && editor.save) {
+                editor.save();
+            }
             var data = program_input.val();
             if(data=="" || title_input.val() == "") {
                 alert("Values may not be empty!");


Mime
View raw message