Skip to content

Commit

Permalink
Updated to AngularJS 1.2.9 and Bootstrap 3.0.3. ng-route is already i…
Browse files Browse the repository at this point in the history
…njected.
  • Loading branch information
jimakker committed Jan 21, 2014
1 parent 3c4254f commit 0f67607
Show file tree
Hide file tree
Showing 333 changed files with 47,684 additions and 36,663 deletions.
245 changes: 129 additions & 116 deletions public/bootstrap/css/bootstrap-theme.css

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion public/bootstrap/css/bootstrap-theme.min.css

Large diffs are not rendered by default.

2,333 changes: 1,323 additions & 1,010 deletions public/bootstrap/css/bootstrap.css

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions public/bootstrap/css/bootstrap.min.css

Large diffs are not rendered by default.

Binary file modified public/bootstrap/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
399 changes: 200 additions & 199 deletions public/bootstrap/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/bootstrap/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file modified public/bootstrap/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
137 changes: 72 additions & 65 deletions public/bootstrap/js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/**
* bootstrap.js v3.0.0 by @fat and @mdo
* Copyright 2013 Twitter Inc.
* http://www.apache.org/licenses/LICENSE-2.0
*/
if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
/*!
* Bootstrap v3.0.3 (http://getbootstrap.com)
* Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
*/

if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") }

/* ========================================================================
* Bootstrap: transition.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#transitions
* Bootstrap: transition.js v3.0.3
* http://getbootstrap.com/javascript/#transitions
* ========================================================================
* Copyright 2013 Twitter, Inc.
*
Expand Down Expand Up @@ -60,11 +61,11 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$.support.transition = transitionEnd()
})

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: alert.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#alerts
* Bootstrap: alert.js v3.0.3
* http://getbootstrap.com/javascript/#alerts
* ========================================================================
* Copyright 2013 Twitter, Inc.
*
Expand Down Expand Up @@ -159,11 +160,11 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }

$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: button.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#buttons
* Bootstrap: button.js v3.0.3
* http://getbootstrap.com/javascript/#buttons
* ========================================================================
* Copyright 2013 Twitter, Inc.
*
Expand Down Expand Up @@ -217,15 +218,21 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }

Button.prototype.toggle = function () {
var $parent = this.$element.closest('[data-toggle="buttons"]')
var changed = true

if ($parent.length) {
var $input = this.$element.find('input')
.prop('checked', !this.$element.hasClass('active'))
.trigger('change')
if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
if ($input.prop('type') === 'radio') {
// see if clicking on current one
if ($input.prop('checked') && this.$element.hasClass('active'))
changed = false
else
$parent.find('.active').removeClass('active')
}
if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
}

this.$element.toggleClass('active')
if (changed) this.$element.toggleClass('active')
}


Expand Down Expand Up @@ -269,13 +276,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
e.preventDefault()
})

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: carousel.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#carousel
* Bootstrap: carousel.js v3.0.3
* http://getbootstrap.com/javascript/#carousel
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -342,7 +349,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }

if (pos > (this.$items.length - 1) || pos < 0) return

if (this.sliding) return this.$element.one('slid', function () { that.to(pos) })
if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) })
if (activeIndex == pos) return this.pause().cycle()

return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
Expand Down Expand Up @@ -394,7 +401,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }

if (this.$indicators.length) {
this.$indicators.find('.active').removeClass('active')
this.$element.one('slid', function () {
this.$element.one('slid.bs.carousel', function () {
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
$nextIndicator && $nextIndicator.addClass('active')
})
Expand All @@ -412,7 +419,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$next.removeClass([type, direction].join(' ')).addClass('active')
$active.removeClass(['active', direction].join(' '))
that.sliding = false
setTimeout(function () { that.$element.trigger('slid') }, 0)
setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0)
})
.emulateTransitionEnd(600)
} else {
Expand All @@ -421,7 +428,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$active.removeClass('active')
$next.addClass('active')
this.sliding = false
this.$element.trigger('slid')
this.$element.trigger('slid.bs.carousel')
}

isCycling && this.cycle()
Expand Down Expand Up @@ -487,13 +494,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
})
})

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: collapse.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#collapse
* Bootstrap: collapse.js v3.0.3
* http://getbootstrap.com/javascript/#collapse
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -667,13 +674,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$target.collapse(option)
})

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: dropdown.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#dropdowns
* Bootstrap: dropdown.js v3.0.3
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -697,7 +704,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
var backdrop = '.dropdown-backdrop'
var toggle = '[data-toggle=dropdown]'
var Dropdown = function (element) {
var $el = $(element).on('click.bs.dropdown', this.toggle)
$(element).on('click.bs.dropdown', this.toggle)
}

Dropdown.prototype.toggle = function (e) {
Expand All @@ -712,7 +719,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }

if (!isActive) {
if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
// if mobile we we use a backdrop because click events don't delegate
// if mobile we use a backdrop because click events don't delegate
$('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
}

Expand Down Expand Up @@ -794,9 +801,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$.fn.dropdown = function (option) {
return this.each(function () {
var $this = $(this)
var data = $this.data('dropdown')
var data = $this.data('bs.dropdown')

if (!data) $this.data('dropdown', (data = new Dropdown(this)))
if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
if (typeof option == 'string') data[option].call($this)
})
}
Expand All @@ -822,13 +829,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
.on('click.bs.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: modal.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#modals
* Bootstrap: modal.js v3.0.3
* http://getbootstrap.com/javascript/#modals
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1069,14 +1076,14 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
.on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: tooltip.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#tooltip
* Bootstrap: tooltip.js v3.0.3
* http://getbootstrap.com/javascript/#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1456,13 +1463,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
return this
}

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: popover.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#popovers
* Bootstrap: popover.js v3.0.3
* http://getbootstrap.com/javascript/#popovers
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1574,13 +1581,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
return this
}

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: scrollspy.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#scrollspy
* Bootstrap: scrollspy.js v3.0.3
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1691,7 +1698,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
.addClass('active')
}

active.trigger('activate')
active.trigger('activate.bs.scrollspy')
}


Expand Down Expand Up @@ -1733,13 +1740,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
})
})

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: tab.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#tabs
* Bootstrap: tab.js v3.0.3
* http://getbootstrap.com/javascript/#tabs
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1767,7 +1774,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
Tab.prototype.show = function () {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.attr('data-target')
var selector = $this.data('target')

if (!selector) {
selector = $this.attr('href')
Expand Down Expand Up @@ -1869,13 +1876,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$(this).tab('show')
})

}(window.jQuery);
}(jQuery);

/* ========================================================================
* Bootstrap: affix.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#affix
* Bootstrap: affix.js v3.0.3
* http://getbootstrap.com/javascript/#affix
* ========================================================================
* Copyright 2012 Twitter, Inc.
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1996,4 +2003,4 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
})
})

}(window.jQuery);
}(jQuery);
13 changes: 7 additions & 6 deletions public/bootstrap/js/bootstrap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


// Declare app level module which depends on filters, and services
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives','ngRoute']).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider.when('/view1', {templateUrl: 'partial/1', controller: MyCtrl1});
$routeProvider.when('/view2', {templateUrl: 'partial/2', controller: MyCtrl2});
Expand Down
Loading

0 comments on commit 0f67607

Please sign in to comment.