Merge "Removal of jquery"
This commit is contained in:
commit
15bdc59b8b
bower.json
src
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user