app/admin_files/wplink.js
File wplink.js
has 439 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global ajaxurl, tinymce, wpLinkL10n, tinyMCEPopup, setUserSetting, wpActiveEditor */
var wpLink;
(function($){
var inputs = {}, rivers = {}, ed, River, Query;
Function mceUpdate
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mceUpdate : function() {
var ed = tinyMCEPopup.editor,
attrs = wpLink.getAttrs(),
e, b;
Function htmlUpdate
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
htmlUpdate : function() {
var attrs, html, begin, end, cursor, selection,
textarea = wpLink.textarea;
if ( ! textarea )
Function init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function() {
inputs.dialog = $('#wp-link');
inputs.submit = $('#wp-link-submit');
// URL
inputs.url = $('#url-field');