Skip to content

Commit

Permalink
Fix box widget icons and chart js version in bower issue
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Jul 1, 2017
1 parent 7cfbe94 commit 76ce5a9
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 25 deletions.
20 changes: 11 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// AdminLTE Gruntfile
module.exports = function (grunt) { // jshint ignore:line

'use strict'

grunt.initConfig({
Expand All @@ -9,27 +8,30 @@ module.exports = function (grunt) { // jshint ignore:line
less : {
// Compiles less files upon saving
files: ['build/less/*.less'],
tasks: ['less:development', 'less:production']
tasks: ['less:development', 'less:production', 'notify:less']
},
js : {
// Compile js files upon saving
files: ['build/js/*.js', 'dist/js/app.js'],
tasks: ['js']
tasks: ['js', 'notify:js']
},
skins: {
// Compile any skin less files upon saving
files: ['build/less/skins/*.less'],
tasks: ['less:skins', 'less:minifiedSkins']
tasks: ['less:skins', 'less:minifiedSkins', 'notify:less']
}
},
// Notify end of tasks
notify: {
less : {
title : 'LESS Compiler',
message: 'LESS finished running'
less: {
options: {
title : 'AdminLTE',
message: 'LESS finished running'
}
},
uglify: {
js : {
options: {
title : 'JS Compiler',
title : 'AdminLTE',
message: 'JS bundler finished running'
}
}
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"dependencies": {
"bootstrap-slider": "*",
"chart.js": "^1.0.*",
"chart.js": "1.0.*",
"ckeditor": "^4.7.0",
"bootstrap-colorpicker": "^2.5.1",
"bootstrap": "^3.3.7",
Expand Down
12 changes: 7 additions & 5 deletions build/js/BoxWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Adds box widget functions to boxes.
*
* @Usage: $('.my-box').boxWidget(options)
* or add [data-widget="box-widget"] to the ul element
* This plugin auto activates on any element using the `.box` class
* Pass any option as data-option="value"
*/
+function ($) {
Expand Down Expand Up @@ -64,7 +64,8 @@

$(this.element).removeClass(ClassName.collapsed)

$(Selector.tools)
$(this.element)
.find(Selector.tools)
.find('.' + expandIcon)
.removeClass(expandIcon)
.addClass(collapseIcon)
Expand All @@ -80,7 +81,8 @@
var collapseIcon = this.options.collapseIcon
var expandIcon = this.options.expandIcon

$(Selector.tools)
$(this.element)
.find(Selector.tools)
.find('.' + collapseIcon)
.removeClass(collapseIcon)
.addClass(expandIcon)
Expand Down Expand Up @@ -108,12 +110,12 @@

$(this.element).on('click', this.options.collapseTrigger, function (event) {
if (event) event.preventDefault()
that.toggle($(this))
that.toggle()
})

$(this.element).on('click', this.options.removeTrigger, function (event) {
if (event) event.preventDefault()
that.remove($(this))
that.remove()
})
}

Expand Down
2 changes: 1 addition & 1 deletion build/js/PushMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Adds the push menu functionality to the sidebar.
*
* @usage: $('.btn').pushMenu(options)
* or add [data-toggle="push-menu"] to any toggle button
* or add [data-toggle="push-menu"] to any button
* Pass any option as data-option="value"
*/
+function ($) {
Expand Down
14 changes: 8 additions & 6 deletions dist/js/adminlte.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ throw new Error('AdminLTE requires jQuery')
* Adds the push menu functionality to the sidebar.
*
* @usage: $('.btn').pushMenu(options)
* or add [data-toggle="push-menu"] to any toggle button
* or add [data-toggle="push-menu"] to any button
* Pass any option as data-option="value"
*/
+function ($) {
Expand Down Expand Up @@ -668,7 +668,7 @@ throw new Error('AdminLTE requires jQuery')
* Adds box widget functions to boxes.
*
* @Usage: $('.my-box').boxWidget(options)
* or add [data-widget="box-widget"] to the ul element
* This plugin auto activates on any element using the `.box` class
* Pass any option as data-option="value"
*/
+function ($) {
Expand Down Expand Up @@ -729,7 +729,8 @@ throw new Error('AdminLTE requires jQuery')

$(this.element).removeClass(ClassName.collapsed)

$(Selector.tools)
$(this.element)
.find(Selector.tools)
.find('.' + expandIcon)
.removeClass(expandIcon)
.addClass(collapseIcon)
Expand All @@ -745,7 +746,8 @@ throw new Error('AdminLTE requires jQuery')
var collapseIcon = this.options.collapseIcon
var expandIcon = this.options.expandIcon

$(Selector.tools)
$(this.element)
.find(Selector.tools)
.find('.' + collapseIcon)
.removeClass(collapseIcon)
.addClass(expandIcon)
Expand Down Expand Up @@ -773,12 +775,12 @@ throw new Error('AdminLTE requires jQuery')

$(this.element).on('click', this.options.collapseTrigger, function (event) {
if (event) event.preventDefault()
that.toggle($(this))
that.toggle()
})

$(this.element).on('click', this.options.removeTrigger, function (event) {
if (event) event.preventDefault()
that.remove($(this))
that.remove()
})
}

Expand Down
2 changes: 1 addition & 1 deletion dist/js/adminlte.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pages/forms/advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ <h3 class="control-sidebar-heading">Chat Settings</h3>
<!-- Bootstrap 3.3.7 -->
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Select2 -->
<script src="../../plugins/select2/select2.full.min.js"></script>
<script src="../../bower_components/select2/dist/js/select2.full.min.js"></script>
<!-- InputMask -->
<script src="../../plugins/input-mask/jquery.inputmask.js"></script>
<script src="../../plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
Expand Down

0 comments on commit 76ce5a9

Please sign in to comment.