Skip to content

Commit

Permalink
Renaming some elements/classes for consistancy
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed May 8, 2013
1 parent 6b7552f commit d55e8be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions resources/themes/bootstrap/directorylister.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(document).ready(function() {
});

// Hash button on click action
$('.hashButton').click(function(event) {
$('.checksumButton').click(function(event) {

// Get the file name and path
var name = $(this).closest('a').attr('data-name');
Expand All @@ -33,18 +33,18 @@ $(document).ready(function() {
console.log(obj);

// Set modal title value
$('#hashModal .modal-header h3').text(name);
$('#checksumModal .modal-header h3').text(name);

// Set modal pop-up hash values
$('#hashTable .md5 .hash').text(obj.md5);
$('#hashTable .sha1 .hash').text(obj.sha1);
$('#hashTable .sha256 .hash').text(obj.sha256);
$('#checksumTable .md5 .hash').text(obj.md5);
$('#checksumTable .sha1 .hash').text(obj.sha1);
$('#checksumTable .sha256 .hash').text(obj.sha256);

}
});

// Show the modal
$('#hashModal').modal('show');
$('#checksumModal').modal('show');

// Prevent default link action
event.preventDefault();
Expand Down
8 changes: 4 additions & 4 deletions resources/themes/bootstrap/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<i class="<?php echo $fileInfo['icon_class']; ?>">&nbsp;</i>
<?php echo $name; ?>
</span>
<span class="fileHash">
<span class="fileButtons">
<?php if (is_file($fileInfo['file_path'])): ?>
<button class="hashButton btn btn-mini">#</button>
<button class="checksumButton btn btn-mini">#</button>
<?php endif; ?>
</span>
<span class="fileSize"><?php echo $fileInfo['file_size']; ?></span>
Expand All @@ -78,15 +78,15 @@

</div>

<div id="hashModal" class="modal hide fade">
<div id="checksumModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h3>{{modal_header}}</h3>
</div>

<div class="modal-body">

<table id="hashTable" class="table table-bordered">
<table id="checksumTable" class="table table-bordered">
<tbody>
<tr class="md5">
<td class="title">MD5</td>
Expand Down
6 changes: 3 additions & 3 deletions resources/themes/bootstrap/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ li {
width: 600px;
}

#directoryListing .fileHash {
#directoryListing .fileButtons {
display: inline-block;
float: left;
margin: 6px;
Expand Down Expand Up @@ -217,11 +217,11 @@ li {
width: 125px;
}

#directoryListing .hashButton {
#directoryListing .checksumButton {
display: none;
}

#directoryListing a:hover .hashButton {
#directoryListing a:hover .checksumButton {
display: inline-block;
}

Expand Down

0 comments on commit d55e8be

Please sign in to comment.