IE compat

This commit is contained in:
Nils Maier 2014-02-28 12:52:16 +01:00
parent f816ab853f
commit 37a8307027
2 changed files with 2 additions and 4 deletions

View File

@ -239,7 +239,7 @@
<!-- {{{ download template --> <!-- {{{ download template -->
<h3 ng-show="totalAria2Downloads()">Download List</h3> <h3 ng-show="totalAria2Downloads()">Download List</h3>
<form ng-show="(totalAria2Downloads() > pageSize) || downloadFilter.length" id="filters"> <form ng-show="(totalAria2Downloads() > pageSize) || downloadFilter.length" id="filters" class="clearfix">
<fieldset> <fieldset>
<label for="download-filter" id="download-filter-label">Search</label> <label for="download-filter" id="download-filter-label">Search</label>
<input id="download-filter" type="text" ng-model="downloadFilter" ng-change="onDownloadFilter()" class="input-large"/> <input id="download-filter" type="text" ng-model="downloadFilter" ng-change="onDownloadFilter()" class="input-large"/>
@ -276,8 +276,6 @@
</fieldset> </fieldset>
</form> </form>
<span class="clearfix"></span>
<div class="pagination pagination-right" ng-show="totalDownloads > pageSize"> <div class="pagination pagination-right" ng-show="totalDownloads > pageSize">
<pagination <pagination
total-items="totalDownloads" total-items="totalDownloads"

View File

@ -11,7 +11,7 @@ angular.module('webui.services.utils', [])
return rndBuffer; return rndBuffer;
}; };
if (!crypto.getRandomValues) { if (!window.crypto || !crypto.getRandomValues) {
return rnd16Weak; return rnd16Weak;
} }
return function() { return function() {