Commit f93775c8 authored by Leo Iannacone's avatar Leo Iannacone

set error as panel in main body

parent 6ff7c113
...@@ -579,12 +579,12 @@ function Page_Distrubion(socket) { ...@@ -579,12 +579,12 @@ function Page_Distrubion(socket) {
set: function (socket_error) { set: function (socket_error) {
if ($('#error').is(':visible')) if ($('#error').is(':visible'))
return; return;
$('#error span').html(socket_error); $('#error .message').html(socket_error);
error.view(); error.view();
}, },
clean: function () { clean: function () {
$('#error').hide(); $('#error').hide();
$('#error span').html(''); $('#error .message').html('');
}, },
view: function () { view: function () {
$('#error').fadeIn(100); $('#error').fadeIn(100);
......
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
</ol> </ol>
</nav> </nav>
<div id="error" class="alert alert-danger">
<strong>Oh snap!</strong> <span></span>
</div>
<article class="row"> <article class="row">
<aside id="sidebar" class="col-md-3"> <aside id="sidebar" class="col-md-3">
<nav id="packages"> <nav id="packages">
...@@ -70,6 +66,12 @@ ...@@ -70,6 +66,12 @@
<header> <header>
<h1 id="title"></h1> <h1 id="title"></h1>
</header> </header>
<div id="error" class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title">Oh snap!</h3>
</div>
<div class="panel-body message"></div>
</div>
<div id="welcome"></div> <div id="welcome"></div>
<div id="file"> <div id="file">
<div id="package_info"></div> <div id="package_info"></div>
......
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