Merge "Removal of jquery"

This commit is contained in:
Jenkins 2014-06-19 12:45:34 +00:00 committed by Gerrit Code Review
commit 15bdc59b8b
5 changed files with 18 additions and 9 deletions

@ -2,7 +2,6 @@
"name": "storyboard-webclient",
"version": "0.0.1",
"dependencies": {
"jquery": "2.0.3",
"font-awesome": "4.0",
"angular": "1.2.13",
"angular-resource": "1.2.13",

@ -40,9 +40,8 @@ angular.module('sb.services')
return;
}
}
// If there is a <base> tag, then we can use that.
if ($('base').length > 0) {
if (document.getElementsByTagName('base').length > 0) {
$provide.constant(propertyName, '');
return;
}

@ -32,10 +32,12 @@ angular.module('sb.util')
// Clone the created element and attach it to our DOM.
var shadow = angular.element('<span></span>');
shadow.attr('class', $element.attr('class'));
shadow.css('display', 'none')
.css('white-space', 'pre')
.css('width', 'auto')
.css('visibility', 'hidden');
shadow.css({
display: 'none',
'white-space': 'pre',
width: 'auto',
visibility: 'hidden'
});
// Sane attach/detach
$document.find('body').append(shadow);

@ -14,4 +14,14 @@
* under the License.
*/
angular.module('sb.util', ['ui.router', 'LocalStorageModule']);
angular.module('sb.util', ['ui.router', 'LocalStorageModule'])
.run(function () {
'use strict';
angular.element.prototype.hide = function () {
this.addClass('ng-hide');
};
angular.element.prototype.show = function () {
this.removeClass('ng-hide');
};
});

@ -28,7 +28,6 @@
<link rel="shortcut icon" href="favicon.ico">
<!-- build:js(bower_components) js/libs.js -->
<script src="jquery/jquery.js"></script>
<script src="angular/angular.js"></script>
<script src="angular-elastic/elastic.js"></script>
<script src="angular-bootstrap/ui-bootstrap-tpls.js"></script>