From 7e5b304dbfd8f5413db0bbe557b8e3d9a81b09c4 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 22:24:31 -0700 Subject: [PATCH] add liscense to js files --- js/bootstrap-alerts.js | 20 ++++++++++++++++++++ js/bootstrap-dropdown.js | 26 +++++++++++++++++++++++--- js/bootstrap-modal.js | 20 ++++++++++++++++++++ js/bootstrap-popover.js | 27 ++++++++++++++++++++++----- js/bootstrap-scrollspy.js | 4 ++-- js/bootstrap-tabs.js | 20 ++++++++++++++++++++ js/bootstrap-twipsy.js | 21 ++++++++++++++++++++- 7 files changed, 127 insertions(+), 11 deletions(-) diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js index 4c9c9394d6..dbce13466f 100644 --- a/js/bootstrap-alerts.js +++ b/js/bootstrap-alerts.js @@ -1,3 +1,23 @@ +/* ========================================================== + * bootstrap-alerts.js + * http://twitter.github.com/bootstrap/javascript.html#alerts + * ========================================================== + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================== */ + + (function( $ ){ /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) diff --git a/js/bootstrap-dropdown.js b/js/bootstrap-dropdown.js index fe73e79944..26db854611 100644 --- a/js/bootstrap-dropdown.js +++ b/js/bootstrap-dropdown.js @@ -1,7 +1,24 @@ -(function( $ ){ +/* ============================================================ + * bootstrap-dropdown.js + * http://twitter.github.com/bootstrap/javascript.html#dropdown + * ============================================================ + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============================================================ */ - /* DROPDOWN PLUGIN DEFINITION - * ========================== */ + +(function( $ ){ var selector = 'a.menu, .dropdown-toggle' @@ -13,6 +30,9 @@ $('body').bind("click", clearMenus) }) + /* DROPDOWN PLUGIN DEFINITION + * ========================== */ + $.fn.dropdown = function ( options ) { return this.each(function () { $(this).delegate(selector, 'click', function (e) { diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index f1e795668b..8b21c192d1 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -1,3 +1,23 @@ +/* ========================================================= + * bootstrap-modal.js + * http://twitter.github.com/bootstrap/javascript.html#modal + * ========================================================= + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================= */ + + (function( $ ){ /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) diff --git a/js/bootstrap-popover.js b/js/bootstrap-popover.js index 5928fe8caf..4995fe5d89 100644 --- a/js/bootstrap-popover.js +++ b/js/bootstrap-popover.js @@ -1,17 +1,34 @@ - /* EXTENDS BOOTSTRAP-TWIPSY.js - =========================== */ +/* =========================================================== + * bootstrap-popover.js + * http://twitter.github.com/bootstrap/javascript.html#popover + * =========================================================== + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * =========================================================== */ + (function( $ ) { - /* POPOVER PUBLIC CLASS DEFINITION - * ============================== */ - var Popover = function ( element, options ) { this.$element = $(element) this.options = options this.enabled = true } + /* NOTE: POPOVER EXTENDS BOOTSTRAP-TWIPSY.js + ========================================= */ + Popover.prototype = $.extend({}, $.fn.twipsy.Twipsy.prototype, { setContent: function () { diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index c492e2feef..2cf487c50f 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -15,8 +15,8 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * ============================================================== - */ + * ============================================================== */ + !function ( $ ) { diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js index 029ccc65c3..aaa73644df 100644 --- a/js/bootstrap-tabs.js +++ b/js/bootstrap-tabs.js @@ -1,3 +1,23 @@ +/* ======================================================== + * bootstrap-tabs.js + * http://twitter.github.com/bootstrap/javascript.html#tabs + * ======================================================== + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ======================================================== */ + + (function( $ ){ function activate ( element, container ) { diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index ac2f562414..a227af4d28 100644 --- a/js/bootstrap-twipsy.js +++ b/js/bootstrap-twipsy.js @@ -1,4 +1,23 @@ -/* Adapted from the original jQuery.tipsy by Jason Frame */ +/* ========================================================== + * bootstrap-twipsy.js + * http://twitter.github.com/bootstrap/javascript.html#twipsy + * Adapted from the original jQuery.tipsy by Jason Frame + * ========================================================== + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================== */ + (function( $ ) {