update jquery (3.0.0-slim) and clean
This commit is contained in:
parent
9cae8b280d
commit
498ba4a06a
4 changed files with 10 additions and 77 deletions
|
|
@ -125,39 +125,6 @@ module.exports = {
|
|||
|
||||
},
|
||||
|
||||
|
||||
createPopup: function(title,content) {
|
||||
|
||||
var popup = $(`
|
||||
<div class="popup">
|
||||
<div class="popup-wrapper">
|
||||
<div class="popup-title">${title}<span class="closer">${module.exports.icon('remove')}</span></div>
|
||||
<div class="popup-content"></div>
|
||||
</div>
|
||||
</div>`),
|
||||
closer = popup.find('.popup-title .closer')
|
||||
|
||||
closer.click(function(){
|
||||
popup.close()
|
||||
})
|
||||
|
||||
|
||||
popup.close = function(){
|
||||
$(document).unbind('keydown.popup')
|
||||
popup.remove()
|
||||
}
|
||||
|
||||
popup.find('.popup-content').append(content)
|
||||
$('body').append(popup)
|
||||
|
||||
$(document).on('keydown.popup', function(e){
|
||||
if (e.keyCode==27) popup.close()
|
||||
})
|
||||
|
||||
|
||||
return popup
|
||||
},
|
||||
|
||||
editorEnable: function(){
|
||||
$('.editor-root').attr('data-tab','#container').removeClass('disabled')
|
||||
$('.enable-editor').addClass('on')
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
|
||||
|
||||
popup.close = function(){
|
||||
$(document).unbind('.popup')
|
||||
$(document).off('.popup')
|
||||
popup.remove()
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
9
browser/js/jquery/jquery.min.js
vendored
9
browser/js/jquery/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue