X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=plugins%2Fforms%2Fdialogs%2Fselect.js;h=734d0330b0d408e640d7f0fb538c34c362b84426;hp=e5e2a388a9ec4ec105422a5db9b9dd5a805e0a78;hb=26ea9b471a69b563dfa9fb7c9c8d97db8e56de0e;hpb=53700a2c9aa44599d0a74cb0e0b5e5fbdead0fcd diff --git a/plugins/forms/dialogs/select.js b/plugins/forms/dialogs/select.js index e5e2a38..734d033 100644 --- a/plugins/forms/dialogs/select.js +++ b/plugins/forms/dialogs/select.js @@ -1,6 +1,6 @@ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.html or http://ckeditor.com/license + For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add("select",function(c){function h(a,b,e,d,c){a=f(a);d=d?d.createElement("OPTION"):document.createElement("OPTION");if(a&&d&&"option"==d.getName())CKEDITOR.env.ie?(isNaN(parseInt(c,10))?a.$.options.add(d.$):a.$.options.add(d.$,c),d.$.innerHTML=0c?0:c).insertBeforeMe(d):a.append(d),d.setText(0b)return!1;a=a.getChild(b);a.setText(e);a.setValue(d);return a}function k(a){for(a=f(a);a.getChild(0)&&a.getChild(0).remove(););}function j(a,b,e){var a=f(a),d=g(a);if(0>d)return!1;b=d+b;b=0>b?0:b;b=b>=a.getChildCount()?a.getChildCount()-1:b;if(d==b)return!1;var d=a.getChild(d),c=d.getText(),o=d.getValue();d.remove();d=h(a,c,o,!e?null:e,b);i(a,b);return d}function g(a){return(a=f(a))?a.$.selectedIndex:-1}