# HG changeset patch # User Mitesh Patel # Date 1249269805 25200 # Node ID fa71d381705c0299007e28884f79a4bd17ad456c # Parent ad78ef7abf55e63eb92596395d034f3b9c2ee9fb #5447, jQuery and jQuery UI upgrade tweaks diff --git a/sage/server/notebook/interact.py b/sage/server/notebook/interact.py --- a/sage/server/notebook/interact.py +++ b/sage/server/notebook/interact.py @@ -229,7 +229,7 @@ def html_slider(id, values, callback, st ... """ s = """"""%(id,int(margin)) if values != "null": s += ""%id @@ -240,7 +240,7 @@ def html_slider(id, values, callback, st # below which gets passed an anonymous function. s += """' - head += '\n\n' - head += '\n\n' + head += '\n' + + # jQuery -- general-purpose functions. + head += '\n' + # Sage notebook library and stylesheet. + head += '\n' + head += '\n' if JSMATH: - # turn off the ugly scary font warning. - head += '\n \n' + # Turn off jsMath's ugly-scary font warning. + head += '\n' head += '\n' if not JSMATH_IMAGE_FONTS: - head +=' \n' + head +='\n' - # Move the jsMath button 20 pixels from the right edge - # (apparently in some browsers, it covers up the scroll - # bar) - head += """ -""" + # Move jsMath button -- covers scroll bar in some browsers. + head += ''' +''' head += '\n' - head += r'''''' + head += ''' +''' - # import latex macros + # jsMath LaTeX macros. for m in sage_jsmath_macros: head += '\n' - # Load the jquery and ui-jquery javascript library. - # This is used for interact functionality in the notebook, and will be used - # to enable drag and drop, image zoom, etc. - head += ''' - - - + # jQuery UI -- interacts, widgets. + head += ''' + + + +''' - - - ''' -# TODO: get the lazy loading plugin + head +='\n' + # Jmol -- embedded 3d graphics. + head +='\n' + # This must stay in : + head +='\n' -# TODO: Load individual ui plugins, not the whole package: -# -# -# -# -# -# - - - # This was for syntax hilighting -# head +=' \n' -# head += '\n' - - head +=' \n' - - # Jmol -- embedded 3d graphics. - head +=' \n' - - head +=' \n' # this must stay in the - - # TinyMCE and jEditable -- in-place editing of text cells + # TinyMCE and jEditable -- in-place editing of text cells. if JEDITABLE_TINYMCE: head += """ - +
-
+