@@ -11,21 +11,21 @@
"license": "MIT",
"ignore": [],
"description": "Native AngularJS (Angular) directives for Bootstrap.",
"version": "0.14.3",
"version": "0.12.1",
"main": [
"./ui-bootstrap-tpls.js"
],
"dependencies": {
"angular": ">=1.3.0"
"angular": ">=1 <1.3.0"
},
"homepage": "https://github.com/angular-ui/bootstrap-bower",
"_release": "0.14.3",
"_release": "0.12.1",
"_resolution": {
"type": "version",
"tag": "0.14.3",
"commit": "306d1a30b4a8e8144741bb9c0126331ac884126a"
"tag": "0.12.1",
"commit": "ab14fbaaf3d592f8e76018f0666c5af6f68ebaa3"
},
"_source": "git://github.com/angular-ui/bootstrap-bower.git",
"_target": "0.14.3",
"_target": "0.12.1",
"_originalSource": "angular-bootstrap"
}

This file was deleted.

This file was deleted.

This file was deleted.

@@ -11,9 +11,9 @@
"license": "MIT",
"ignore": [],
"description": "Native AngularJS (Angular) directives for Bootstrap.",
"version": "0.14.3",
"version": "0.12.1",
"main": ["./ui-bootstrap-tpls.js"],
"dependencies": {
"angular": ">=1.3.0"
}
"angular": ">=1 <1.3.0"
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,13 @@
{
"name": "bootstrap-modal-popover",
"homepage": "https://github.com/scruffles/BootstrapModalPopover",
"_release": "ad58efc734",
"_resolution": {
"type": "branch",
"branch": "master",
"commit": "ad58efc734b69737c8a2633ed3fae9f852f18378"
},
"_source": "https://github.com/scruffles/BootstrapModalPopover.git",
"_target": "*",
"_originalSource": "https://github.com/scruffles/BootstrapModalPopover.git"
}
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2013-2014 Bryan Young

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@@ -0,0 +1,3 @@
This library provides the API and functionality of Bootstrap's Modal with the appearance of Boostrap's Popover, allowing editable forms in Popovers.

For demos and documentation see the project's [home page](http://scruffles.github.com/BootstrapModalPopover/)
@@ -0,0 +1,5 @@
<html>
<body>
This content was loaded from an external html file
</body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,30 @@
.com { color: #93a1a1; }
.lit { color: #195f91; }
.pun, .opn, .clo { color: #93a1a1; }
.fun { color: #dc322f; }
.str, .atv { color: #D14; }
.kwd, .prettyprint .tag { color: #1e347b; }
.typ, .atn, .dec, .var { color: teal; }
.pln { color: #48484c; }

.prettyprint {
padding: 8px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
.prettyprint.linenums {
-webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
-moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
}

/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin: 0 0 0 33px; /* IE indents via margin-left */
}
ol.linenums li {
padding-left: 12px;
color: #bebec5;
line-height: 20px;
text-shadow: 0 1px 0 #fff;
}
@@ -0,0 +1,178 @@
/*************************************************************************
*
* WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* THIS FILE HAS BEEN MODIFIED SLIGHTLY FOR CMS. LOOK FOR CUSTOMIZATION TAGS BELOW
*
**************************************************************************
*/
!function ($) {

/* MODAL POPOVER PUBLIC CLASS DEFINITION
* =============================== */

var ModalPopover = function (element, options) {
this.options = options;
this.$element = $(element)
.delegate('[data-dismiss="modal-popup"]', 'click.dismiss.modal-popup', $.proxy(this.hide, this));
this.options.remote && this.$element.find('.popover-content').load(this.options.remote);
this.$parent = options.$parent; // todo make sure parent is specified
}


/* NOTE: MODAL POPOVER EXTENDS BOOTSTRAP-MODAL.js
========================================== */


ModalPopover.prototype = $.extend({}, $.fn.modal.Constructor.prototype, {

constructor: ModalPopover,


getPosition: function () {
var $element = this.$parent;
return $.extend({}, ($element.offset()), {
width: $element[0].offsetWidth, height: $element[0].offsetHeight
});
},

show: function () {
var $dialog = this.$element;
$dialog.css({ top: 0, left: 0, display: 'block', 'z-index': 1100 });

var placement = typeof this.options.placement == 'function' ?
this.options.placement.call(this, $tip[0], this.$element[0]) :
this.options.placement;

var pos = this.getPosition();

var actualWidth = $dialog[0].offsetWidth;
var actualHeight = $dialog[0].offsetHeight;

var percent = .36; // CUSTOMIZATION - This percentage goes hand and hand with the css.
var tp;
switch (placement) {
case 'bottom':
tp = { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 }
break;
case 'top':
tp = { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 }
break;
case 'left':
tp = { top: pos.top + pos.height * percent - actualHeight * percent, left: pos.left - actualWidth }
break;
case 'right':
tp = { top: pos.top + pos.height * percent - actualHeight * percent, left: pos.left + pos.width }
break;
}

// CUSTOMIZATION START:
if (tp.top < 0) tp.top = 0;
if (tp.left < 0) tp.left = 0;
// CUSTOMIZATION END:

$dialog
.css(tp)
.addClass(placement)
.addClass('in');


$.fn.modal.Constructor.prototype.show.call(this, arguments); // super
},

/** todo entire function was copied just to set the background to 'none'. need a better way */
backdrop: function (callback) {
var that = this
, animate = this.$element.hasClass('fade') ? 'fade' : ''

if (this.isShown && this.options.backdrop) {
var doAnimate = $.support.transition && animate

var appendTo = document.body;
// CUSTOMIZATION START - Allow the caller to append to places other than just document.body.
if (this.options.backdropTargetId) {
appendTo = $(this.options.backdropTargetId)[0];
}

this.$backdrop = $('<div class="modal-backdrop ' + animate + '" style="background:none; z-index:1090" />')
.appendTo(appendTo)
// CUSTOMIZATION END

if (this.options.backdrop != 'static') {
this.$backdrop.click($.proxy(this.hide, this))
}

if (doAnimate) this.$backdrop[0].offsetWidth // force reflow

this.$backdrop.addClass('in')

doAnimate ?
this.$backdrop.one($.support.transition.end, callback) :
callback()

} else if (!this.isShown && this.$backdrop) {
this.$backdrop.removeClass('in')

$.support.transition && this.$element.hasClass('fade') ?
this.$backdrop.one($.support.transition.end, $.proxy(this.removeBackdrop, this)) :
this.removeBackdrop()

} else if (callback) {
callback()
}
}

});


/* MODAL POPOVER PLUGIN DEFINITION
* ======================= */

$.fn.modalPopover = function (option) {
return this.each(function () {
var $this = $(this);
// ** Customization start **
//var data = $this.data('modal-popover'); <- original line
var data = typeof option == 'string' ? $this.data('modal-popover') : undefined; // Make sure to clear out data if we are passing in an object for options.
// ** Customization end **
var options = $.extend({}, $.fn.modalPopover.defaults, $this.data(), typeof option == 'object' && option);
// todo need to replace 'parent' with 'target'
options['$parent'] = (data && data.$parent) || option.$parent || $(options.target);

if (!data) $this.data('modal-popover', (data = new ModalPopover(this, options)))

if (typeof option == 'string') {
data[option]();
}
})
}

$.fn.modalPopover.Constructor = ModalPopover

$.fn.modalPopover.defaults = $.extend({}, $.fn.modal.defaults, {
placement: 'left',
keyboard: true,
backdrop: true, // JK: Customization - added this option
});


$(function () {
$('body').on('click.modal-popover.data-api', '[data-toggle="modal-popover"]', function (e) {
var $this = $(this);
var href = $this.attr('href');
var $dialog = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))); //strip for ie7
var option = $dialog.data('modal-popover') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $dialog.data(), $this.data());
option['$parent'] = $this;

e.preventDefault();

$dialog
.modalPopover(option)
.modalPopover('show')
.one('hide', function () {
$this.focus()
})
})
})

}(window.jQuery);
//