Update files to upstream
1. update js file content. 2. remove scss file and add css file. 3. add the html template file. Change-Id: I328b902b43def31d0f1e8a31da8c2c427c2bfa65
This commit is contained in:
parent
bd23c92975
commit
59bdf1db3a
20
xstatic/pkg/angular_notify/data/angular-notify.html
Normal file
20
xstatic/pkg/angular_notify/data/angular-notify.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<div class="cg-notify-message" ng-class="[$classes,
|
||||||
|
$position === 'center' ? 'cg-notify-message-center' : '',
|
||||||
|
$position === 'left' ? 'cg-notify-message-left' : '',
|
||||||
|
$position === 'right' ? 'cg-notify-message-right' : '']"
|
||||||
|
ng-style="{'margin-left': $centerMargin}">
|
||||||
|
|
||||||
|
<div ng-show="!$messageTemplate">
|
||||||
|
{{$message}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div ng-show="$messageTemplate" class="cg-notify-message-template">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="button" class="cg-notify-close" ng-click="$close()">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
<span class="cg-notify-sr-only">Close</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
@ -154,31 +154,3 @@ angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','
|
|||||||
return notify;
|
return notify;
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
angular.module('cgNotify').run(['$templateCache', function($templateCache) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
$templateCache.put('angular-notify.html',
|
|
||||||
"<div class=\"cg-notify-message\" ng-class=\"[$classes, \n" +
|
|
||||||
" $position === 'center' ? 'cg-notify-message-center' : '',\n" +
|
|
||||||
" $position === 'left' ? 'cg-notify-message-left' : '',\n" +
|
|
||||||
" $position === 'right' ? 'cg-notify-message-right' : '']\"\n" +
|
|
||||||
" ng-style=\"{'margin-left': $centerMargin}\">\n" +
|
|
||||||
"\n" +
|
|
||||||
" <div ng-show=\"!$messageTemplate\">\n" +
|
|
||||||
" {$ $message $}\n" +
|
|
||||||
" </div>\n" +
|
|
||||||
"\n" +
|
|
||||||
" <div ng-show=\"$messageTemplate\" class=\"cg-notify-message-template\">\n" +
|
|
||||||
" \n" +
|
|
||||||
" </div>\n" +
|
|
||||||
"\n" +
|
|
||||||
" <button type=\"button\" class=\"cg-notify-close\" ng-click=\"$close()\">\n" +
|
|
||||||
" <span aria-hidden=\"true\">×</span>\n" +
|
|
||||||
" <span class=\"cg-notify-sr-only\">Close</span>\n" +
|
|
||||||
" </button>\n" +
|
|
||||||
"\n" +
|
|
||||||
"</div>"
|
|
||||||
);
|
|
||||||
|
|
||||||
}]);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user