[CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
This commit is contained in:
36
public/plugins/Bookmark/js/bookmark.js
Normal file
36
public/plugins/Bookmark/js/bookmark.js
Normal file
@@ -0,0 +1,36 @@
|
||||
var Bookmark = {
|
||||
|
||||
// Special XHR that sends in some code to be run
|
||||
// when the full bookmark form gets loaded
|
||||
BookmarkXHR: function(form)
|
||||
{
|
||||
SN.U.FormXHR(form, Bookmark.InitBookmarkForm);
|
||||
return false;
|
||||
},
|
||||
|
||||
// Special initialization function just for the
|
||||
// second step in the bookmarking workflow
|
||||
InitBookmarkForm: function() {
|
||||
SN.Init.CheckBoxes();
|
||||
$('fieldset fieldset label').inFieldLabels({ fadeOpacity:0 });
|
||||
SN.Init.NoticeFormSetup($('#form_new_bookmark'));
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
// Stop normal live event stuff
|
||||
$(document).off("submit", "form.ajax");
|
||||
$(document).off("click", "form.ajax input[type=submit]");
|
||||
|
||||
// Make the bookmark submit super special
|
||||
$(document).on('submit', '#form_initial_bookmark', function (e) {
|
||||
Bookmark.BookmarkXHR($(this));
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
});
|
||||
|
||||
// Restore live event stuff to other forms & submit buttons
|
||||
SN.Init.AjaxForms();
|
||||
|
||||
});
|
Reference in New Issue
Block a user