Skip to content

Commit

Permalink
start rewriting vis in only angular
Browse files Browse the repository at this point in the history
temporarily use 0.4.0-SNAPSHOT release of angular-ui-bootstrap (with additional
patch to support tooltip-placement="mouse") while the fix for
angular-ui/bootstrap#387 has not yet been released
  • Loading branch information
lanterndev committed Jun 16, 2013
1 parent 09ea288 commit cae3246
Show file tree
Hide file tree
Showing 9 changed files with 3,038 additions and 2,246 deletions.
8 changes: 8 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,25 @@
<script src="lib/angular/i18n/angular-locale_fa-ir.js"></script>
<script src="lib/angular/i18n/angular-locale_ar.js"></script>
-->

<script src="components/angular-ui-utils/modules/if/if.js"></script>
<script src="components/angular-ui-utils/modules/showhide/showhide.js"></script>
<!--
<script src="components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
-->
<script src="lib/ui-bootstrap-tpls-0.4.0-SNAPSHOT.js"></script>

<!--
<script src="lib/bootstrap.js"></script>
<script src="lib/select2/select2.js"></script>
-->

<script src="components/lodash/lodash.js"></script>
<script src="components/d3/d3.js"></script>
<script src="lib/topojson.js"></script>
<!--
<script src="components/topojson/topojson.js"></script>
-->

<script src="js/version.js"></script>
<script src="js/app.js"></script>
Expand Down
5 changes: 0 additions & 5 deletions app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,4 @@ var app = angular.module('app', [
// angular-ui config
.value('ui.config', {
animate: 'ui-hide',
jq: {
tooltip: {
container: 'body'
}
}
});
6 changes: 1 addition & 5 deletions app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function ContactCtrl($scope, MODAL, $filter, CONTACT_FORM_MAXLEN) {
}, true);
}

function SettingsCtrl($scope, $timeout, modelSrvc, logFactory, MODAL) {
function SettingsCtrl($scope, logFactory, MODAL) {
var log = logFactory('SettingsCtrl');

$scope.$watch('model.settings.runAtSystemStart', function(runAtSystemStart) {
Expand Down Expand Up @@ -249,10 +249,6 @@ function ProxiedSitesCtrl($scope, $timeout, $filter, logFactory, MODAL, SETTING,
proxiedSites = [],
proxiedSitesDirty = [];

$scope.$watch('model.modal', function(modal) {
$scope.show = modal === MODAL.proxiedSites;
});

$scope.$watch('searchText', function(searchText) {
$scope.inputFiltered = (searchText ? fltr(proxiedSitesDirty, searchText) : proxiedSitesDirty).join('\n');
});
Expand Down
Loading

0 comments on commit cae3246

Please sign in to comment.