Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/375e147079ffcc5fda909e431e511bed85a7709f?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
5 additions and
7 deletions
src/board/UBBoardController.cpp
@ -453,7 +453,6 @@ void UBBoardController::addScene()
setActiveDocumentScene ( mActiveDocument , mActiveSceneIndex + 1 ) ;
setActiveDocumentScene ( mActiveDocument , mActiveSceneIndex + 1 ) ;
QApplication : : restoreOverrideCursor ( ) ;
QApplication : : restoreOverrideCursor ( ) ;
centerOn ( ) ;
}
}
@ -2163,14 +2162,13 @@ void UBBoardController::freezeW3CWidget(QGraphicsItem *item, bool freeze)
{
{
if ( item - > type ( ) = = UBGraphicsW3CWidgetItem : : Type )
if ( item - > type ( ) = = UBGraphicsW3CWidgetItem : : Type )
{
{
QString scriptString ;
if ( freeze )
scriptString = " setfreezed(true); " ;
else
scriptString = " setfreezed(false); " ;
UBGraphicsW3CWidgetItem * item_casted = dynamic_cast < UBGraphicsW3CWidgetItem * > ( item ) ;
UBGraphicsW3CWidgetItem * item_casted = dynamic_cast < UBGraphicsW3CWidgetItem * > ( item ) ;
if ( 0 = = item_casted )
if ( 0 = = item_casted )
return ;
return ;
item_casted - > widgetWebView ( ) - > page ( ) - > mainFrame ( ) - > evaluateJavaScript ( scriptString ) ;
if ( freeze ) {
item_casted - > widgetWebView ( ) - > page ( ) - > mainFrame ( ) - > setContent ( UBW3CWidget : : freezedWidgetPage ( ) . toAscii ( ) ) ;
} else
item_casted - > widgetWebView ( ) - > loadMainHtml ( ) ;
}
}
}
}