Commit 96810d30 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Editor and URL List Page: Updated header to display scope

parent 151b0e6b
......@@ -19,7 +19,7 @@
<body>
<div class="nav_content editor">
<div class="container">
<h3>Edit</h3>
<h3>Editing: <a class="url-list-scope" href=""></a></h3>
<div class="row">
<form class="crib-editor-get form-inline">
<div class="form-group">
......
......@@ -191,7 +191,12 @@
}
})
.push(function (result_list) {
var url_list_scope_link;
url_list_scope_link = gadget.props.element
.querySelector("a.url-list-scope");
gadget.props.scope = result_list[1];
url_list_scope_link.href = gadget.props.scope;
url_list_scope_link.innerHTML = gadget.props.scope;
return gadget.props.start_deferred.resolve();
});
})
......
......@@ -17,7 +17,7 @@
<body>
<div class="nav_content url_list container">
<form class="crib-url-list-content">
<h3>URL List</h3>
<h3>Editing: <a class="url-list-scope" href=""></a></h3>
<div class="form-group">
<label>Search:
<input name="search-pattern" class="search-pattern form-control" type="text" size="50" value="">
......
......@@ -18,8 +18,13 @@
var data = result_list[0],
promise_list = [],
tmp_url_list = [],
url_list_scope_link,
url;
scope = result_list[1];
url_list_scope_link = gadget.props.element
.querySelector("a.url-list-scope");
url_list_scope_link.href = scope;
url_list_scope_link.innerHTML = scope;
if (data.hasOwnProperty("urls")) {
tmp_url_list = data.urls;
} else {
......
Markdown is supported
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