Commit 312f44cd authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete _onSpellCheck_Callback2

getURLParameter убрал из api

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63019 954022d7-b5bf-4e40-9824-e11837661b57
parent ab1fb553
...@@ -5098,9 +5098,6 @@ asc_docs_api.prototype.sync_ContextMenuCallback = function(Data) ...@@ -5098,9 +5098,6 @@ asc_docs_api.prototype.sync_ContextMenuCallback = function(Data)
var cCharDelimiter = String.fromCharCode(5); var cCharDelimiter = String.fromCharCode(5);
function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1];
}
function sendCommand(editor, fCallback, rdata){ function sendCommand(editor, fCallback, rdata){
var sData; var sData;
var sRequestContentType = "application/json"; var sRequestContentType = "application/json";
......
...@@ -1162,6 +1162,10 @@ $(document).ready(function(){ ...@@ -1162,6 +1162,10 @@ $(document).ready(function(){
contextGrad.fillRect(160, 0, 9, 128); contextGrad.fillRect(160, 0, 9, 128);
colorSelecterClick = false; colorSelecterClick = false;
function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1];
}
$("#colorSelectHolder").click(function(evnt,ui){ $("#colorSelectHolder").click(function(evnt,ui){
if(colorSelecterClick){colorSelecterClick = false; return false;} if(colorSelecterClick){colorSelecterClick = false; return false;}
$("#colorSelecter").offset({top:evnt.clientY-8,left:evnt.clientX-8}); $("#colorSelecter").offset({top:evnt.clientY-8,left:evnt.clientX-8});
......
...@@ -9,6 +9,9 @@ var elem, contextGrad, gradient, gradSelectPosTop = 1, imgd, pix, colorSelecterC ...@@ -9,6 +9,9 @@ var elem, contextGrad, gradient, gradSelectPosTop = 1, imgd, pix, colorSelecterC
var IsVisibleMenu = false, specialHeaderForFirstPage = false,differentHeaderForOddAndEvenPages = false; var IsVisibleMenu = false, specialHeaderForFirstPage = false,differentHeaderForOddAndEvenPages = false;
var focusEditor = undefined, color123,bulletlistpressed=false,numberedlistpressed=false,cellsForTable={columns:0,rows:0},insttblpressed = false; var focusEditor = undefined, color123,bulletlistpressed=false,numberedlistpressed=false,cellsForTable={columns:0,rows:0},insttblpressed = false;
var clearPropObj = false; var clearPropObj = false;
function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1];
}
function remIconPress(){ function remIconPress(){
$("#td_BackgroundColor, #td_TextColor,#td_paragraph,#td_headertitle").removeClass("iconPressed"); $("#td_BackgroundColor, #td_TextColor,#td_paragraph,#td_headertitle").removeClass("iconPressed");
if(insttblpressed==false && $("#td_instbl").hasClass("iconPressed")){ if(insttblpressed==false && $("#td_instbl").hasClass("iconPressed")){
......
...@@ -6971,11 +6971,6 @@ asc_docs_api.prototype.asc_getAnchorPosition = function() ...@@ -6971,11 +6971,6 @@ asc_docs_api.prototype.asc_getAnchorPosition = function()
}; };
var cCharDelimiter = String.fromCharCode(5); var cCharDelimiter = String.fromCharCode(5);
function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1];
}
function spellCheck (editor, rdata) { function spellCheck (editor, rdata) {
//console.log("start - " + rdata); //console.log("start - " + rdata);
// ToDo проверка на подключение // ToDo проверка на подключение
...@@ -7002,12 +6997,6 @@ window["asc_nativeOnSpellCheck"] = function (response) ...@@ -7002,12 +6997,6 @@ window["asc_nativeOnSpellCheck"] = function (response)
editor.SpellCheckApi.onSpellCheck(response); editor.SpellCheckApi.onSpellCheck(response);
}; };
function _onSpellCheck_Callback2 (response)
{
var incomeObject = JSON.parse(response);
SpellCheck_CallBack(incomeObject);
}
function sendCommand(editor, fCallback, rdata){ function sendCommand(editor, fCallback, rdata){
var sData; var sData;
var sRequestContentType = "application/json"; var sRequestContentType = "application/json";
......
...@@ -184,6 +184,9 @@ var Drag = { ...@@ -184,6 +184,9 @@ var Drag = {
} }
}; };
function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1];
}
function remIconPress(){ function remIconPress(){
$("#td_BackgroundColor, #td_TextColor,#td_paragraph,#td_headertitle").removeClass("iconPressed"); $("#td_BackgroundColor, #td_TextColor,#td_paragraph,#td_headertitle").removeClass("iconPressed");
......
...@@ -150,6 +150,10 @@ ...@@ -150,6 +150,10 @@
document.addEventListener('DOMContentLoaded', function () document.addEventListener('DOMContentLoaded', function ()
{ {
function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1];
}
setTimeout(function(){ setTimeout(function(){
var sdkTop = 0, statusBarHeight = 0; var sdkTop = 0, statusBarHeight = 0;
var html_element = document.getElementById("editor_sdk"); var html_element = document.getElementById("editor_sdk");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment