1// Name: HTMLEditor.Toolbar_buttons.FontSize.debug.js 2// Assembly: AjaxControlToolkit 3// Version: 4.1.7.1213 4// FileVersion: 4.1.7.1213 5Type.registerNamespace("Sys.Extended.UI.HTMLEditor.ToolbarButton"); 6 7Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize = function(element) { 8 Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize.initializeBase(this, [element]); 9} 10 11Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize.prototype = { 12 initialize : function() { 13 Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize.callBaseMethod(this, "initialize"); 14 }, 15 16 callMethod : function(select,event) { 17 if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize.callBaseMethod(this, "callMethod")) return false; 18 19 try { 20 var editor = this._designPanel; 21 editor._execCommand("FontSize",false,Sys.Extended.UI.HTMLEditor.fontSizeSeek(select.options.item(select.selectedIndex).value)); 22 } catch(e) {} 23 }, 24 25 checkState : function() { 26 if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize.callBaseMethod(this, "checkState")) return false; 27 28 var editor = this._designPanel; 29 30 var param =null; 31 var _id = this._select.id; 32 33 try{param =(Function.createDelegate(editor, Sys.Extended.UI.HTMLEditor._queryCommandValue))("fontsize",_id);} catch(e){} 34 35 if(param) param = param.toString(); 36 37 if(!editor._FontNotSet) 38 if(!param || param.length==0) { 39 param = Sys.Extended.UI.HTMLEditor.getStyle(editor._doc.body,"font-size"); 40 param = Sys.Extended.UI.HTMLEditor._TryTransformFromPxToPt(param, this, _id); 41 } 42 43 try { 44 var el = this._select; 45 var i=0; 46 if(param && param.length > 0) { 47 var seek = param.toLowerCase().split(",")[0]; 48 for(i=0; i< el.options.length; i++) { 49 var cur = Sys.Extended.UI.HTMLEditor.fontSizeSeek(el.options.item(i).value.toLowerCase().split(",")[0]); 50 51 if(cur==seek) break; 52 } 53 if(i==el.options.length) { 54 try { 55 var newopt = document.createElement("OPTION"); 56 newopt.value = param; 57 newopt.text = param; 58 el.add(newopt,(Sys.Extended.UI.HTMLEditor.isIE)?i:null); 59 $addHandler(newopt, "click", this._onclick_option$delegate); 60 } catch (e) { 61 i = 0; 62 } 63 } 64 } 65 el.selectedIndex = i; 66 } catch(e) {} 67 } 68} 69 70Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize.registerClass("Sys.Extended.UI.HTMLEditor.ToolbarButton.FontSize", Sys.Extended.UI.HTMLEditor.ToolbarButton.DesignModeSelectButton); 71
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.