-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Daemonite/js-update
javascript update
- Loading branch information
Showing
141 changed files
with
8,577 additions
and
8,969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// project | ||
// ui-form-adv.html | ||
$('.datepicker-adv-doc-1').datepicker(); | ||
|
||
$('.datepicker-adv-doc-2').datepicker({ | ||
format: "dd-mmm-yyyy", | ||
selectMonths: true, | ||
selectYears: 30 | ||
}); | ||
|
||
// ui-modal.html | ||
$('#toast-1').on('click', function () { | ||
$('body').toast({ | ||
content: 'Simple toast with some text' | ||
}); | ||
}); | ||
|
||
$('#toast-2').on('click', function () { | ||
$('body').toast({ | ||
content: '<a data-dismiss="toast">Dismiss</a><div class="toast-text">Simple toast with some text and a simple <a href="javascript:void(0)">link</a>.</div>' | ||
}); | ||
}); | ||
|
||
// ui-progress.html | ||
$('.finish-loading').on('click', function(e) { | ||
e.stopPropagation(); | ||
$($(this).attr('data-target')).addClass('el-loading-done'); | ||
}); | ||
|
||
$('#el-loading-tile-wrap .tile-active-show').each(function (index) { | ||
var $this = $(this), | ||
timer; | ||
|
||
$this.on('hide.bs.tile', function(e) { | ||
clearTimeout(timer); | ||
}); | ||
|
||
$this.on('show.bs.tile', function(e) { | ||
if (!$('.el-loading', $this).hasClass('el-loading-done')) { | ||
timer = setTimeout(function() { | ||
$('.el-loading', $this).addClass('el-loading-done'); | ||
$this.prepend('<div class="tile-sub"><p>Additional information<br><small>Aliquam in pharetra leo. In congue, massa sed elementum dictum, justo quam efficitur risus, in posuere mi orci ultrices diam.</small></p></div>'); | ||
}, 6000); | ||
}; | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.