Changeset 1a3173 in indico


Ignore:
Timestamp:
12/01/11 13:38:18 (18 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
04f83e
Parents:
71a6b7
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (11/09/11 12:39:11)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (12/01/11 13:38:18)
Message:

[IMP] Replace lightbox with jQuery colorbox

  • gets rid of some 404 errors
  • looks better
  • uses jquery instead of plain js
Files:
7 added
5 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • etc/js/jquery.cfg

    ra3a8d9 r1a3173  
    33first= 
    44    underscore.js 
    5         jquery.js 
    6         jquery-ui.js 
    7         jquery.form.js 
    8         jquery.custom.js 
    9         jquery.daterange.js 
    10         jquery.form.js 
     5    jquery.js 
     6    jquery-ui.js 
     7    jquery.form.js 
     8    jquery.custom.js 
     9    jquery.daterange.js 
     10    jquery.form.js 
    1111    jquery.qtip.js 
    12         jquery.dttbutton.js 
     12    jquery.dttbutton.js 
     13    jquery.colorbox.js 
  • indico/MaKaC/common/Configuration.py

    rfd562d r1a3173  
    490490                       'accessCredentials': ('CN=user,OU=Users,' 
    491491                                             'DC=example,DC=com', 
    492                                              'secret_password')}, 
    493         # Room Booking Related 
    494         'LightboxCssStylesheetName' : "lightbox/lightbox.css", 
    495         'LightboxJavascriptName'    : "lightbox/lightbox.js" 
     492                                             'secret_password')} 
    496493        } 
    497494 
  • indico/MaKaC/webinterface/pages/base.py

    rc1707f r1a3173  
    5757        info = HelperMaKaCInfo().getMaKaCInfoInstance() 
    5858        files = ['underscore', 'jquery', 'jquery-ui', 'jquery.form', 'jquery.custom', 
    59                  'jquery.daterange', 'jquery.qtip', 'jquery.dttbutton'] 
     59                 'jquery.daterange', 'jquery.qtip', 'jquery.dttbutton', 'jquery.colorbox'] 
    6060        if info.isDebugActive(): 
    6161            # We can't use Loader.js as jQuery is included before any indico js 
  • indico/MaKaC/webinterface/pages/conferences.py

    r76da7d r1a3173  
    26332633        pluginCSSFiles = {"paths" : []} 
    26342634        self._notify("includeTimetableCSSFiles", pluginCSSFiles) 
    2635         cssPaths = ".".join(["""<link rel="stylesheet" href="%s/%s">"""%(baseurl,path) for path in pluginCSSFiles['paths']]) 
    2636         return """ 
    2637         <!-- Lightbox --> 
    2638         <link rel="stylesheet" href="%s/js/lightbox/lightbox.css"> <!--lightbox.css--> 
    2639         <script type="text/javascript" src="%s/js/lightbox/lightbox.js"></script> 
    2640         """ % ( baseurl, baseurl) + cssPaths 
     2635        return ".".join(["""<link rel="stylesheet" href="%s/%s">"""%(baseurl,path) for path in pluginCSSFiles['paths']]) 
    26412636 
    26422637    def _getPageContent(self, params): 
     
    1052810523        baseurl = self._getBaseURL() 
    1052910524        return """ 
    10530         <!-- Lightbox --> 
    10531         <link rel="stylesheet" href="%s/js/lightbox/lightbox.css"> <!--lightbox.css--> 
    10532         <script type="text/javascript" src="%s/js/lightbox/lightbox.js"></script> 
    10533  
    1053410525        <!-- Our libs --> 
    1053510526        <script type="text/javascript" src="%s/js/indico/Legacy/validation.js"></script> 
    1053610527 
    10537         """ % ( baseurl, baseurl, baseurl ) 
     10528        """ % (baseurl) 
    1053810529 
    1053910530    def _setActiveSideMenuItem(self): 
  • indico/MaKaC/webinterface/pages/roomBooking.py

    r18c3cb r1a3173  
    5050#        conf = Config.getInstance() 
    5151#        return """ 
    52 #        <!-- Lightbox --> 
    53 #        <link rel="stylesheet" href="%s/js/lightbox/lightbox.css"> <!--lightbox.css--> 
    54 #        <script type="text/javascript" src="%s/js/lightbox/lightbox.js"></script> 
    55 # 
    5652#        <!-- Our libs --> 
    5753#        <script type="text/javascript" src="%s/js/indico/validation.js"></script> 
     
    6157#        <script type="text/javascript" src="%s"></script> 
    6258#        <script type="text/javascript" src="%s"></script> 
    63 #        """ % ( baseurl, baseurl, baseurl, baseurl, urlHandlers.UHJavascriptCalendar.getURL(), 
    64 #                urlHandlers.UHJavascriptCalendarSetup.getURL() ) 
     59#        """ % (baseurl, baseurl, urlHandlers.UHJavascriptCalendar.getURL(), 
     60#                urlHandlers.UHJavascriptCalendarSetup.getURL()) 
    6561 
    6662 
     
    9086        baseurl = self._getBaseURL() 
    9187        return """ 
    92         <!-- Lightbox --> 
    93         <link rel="stylesheet" href="%s/js/lightbox/lightbox.css"> <!--lightbox.css--> 
    94         <script type="text/javascript" src="%s/js/lightbox/lightbox.js"></script> 
    95  
    9688        <!-- Our libs --> 
    9789        <script type="text/javascript" src="%s/js/indico/Legacy/validation.js"></script> 
    98         """ % ( baseurl, baseurl, baseurl) 
     90        """ % (baseurl) 
    9991 
    10092    def _getSideMenu(self): 
  • indico/MaKaC/webinterface/pages/sessions.py

    r250e54 r1a3173  
    14111411        return WPConfModifScheduleGraphic.getJSFiles(self) 
    14121412 
    1413     def _getHeadContent( self ): 
    1414  
    1415         baseurl = self._getBaseURL() 
    1416         return """ 
    1417         <!-- Lightbox --> 
    1418         <link rel="stylesheet" href="%s/js/lightbox/lightbox.css"> <!--lightbox.css--> 
    1419         <script type="text/javascript" src="%s/js/lightbox/lightbox.js"></script> 
    1420         """ % ( baseurl, baseurl) 
    1421  
    14221413    def _generateTimetable(self): 
    14231414 
  • indico/MaKaC/webinterface/tpls/HTMLHeader.tpl

    rf871ad r1a3173  
    1010        <link rel="stylesheet" type="text/css" href="${ baseurl }/css/jquery-ui.css"> 
    1111        <link rel="stylesheet" type="text/css" href="${ baseurl }/css/jquery.qtip.css"> 
     12        <link rel="stylesheet" type="text/css" href="${ baseurl }/css/jquery.colorbox.css"> 
    1213        <link rel="stylesheet" type="text/css" href="${ baseurl }/css/jquery-ui-custom.css"> 
    1314 
  • indico/htdocs/js/indico/Management/Timetable.js

    r16947b r1a3173  
    12401240 
    12411241        var startTimeRescheduleRB = Html.radio({name:"rescheduleAction", id:"startTimeRescheduleRB", style:{verticalAlign: "middle"}}); 
     1242        var startTimeRescheduleExample = Html.a({href: Indico.Urls.ImagesBase + '/resched_ex_1.png', title: 'Starting Time Example'}, $T("See an example")); 
     1243        $(startTimeRescheduleExample.dom).colorbox(); 
    12421244        var startTimeRescheduleLabel = Html.label({style: {fontWeight: "normal"}}, 
    12431245                Html.div("rescheduleLabelTitle", $T("Adjust starting time of all entries")), 
     
    12511253                            $T("The first entry will start when the interval starts (") + this.tt.contextInfo.startDate.time.slice(0,5) + "), " , 
    12521254                    $T("and the other entries will follow consecutively after it. The durations of the entries will not change. "), 
    1253                     Html.a({href: Indico.Urls.ImagesBase + '/resched_ex_1.png', rel: 'lightbox', title: 'Starting Time Example', onclick: "showLightbox(this); return false;"}, $T("See an example")))); 
     1255                    startTimeRescheduleExample)); 
    12541256 
    12551257        startTimeRescheduleLabel.dom.htmlFor = "startTimeRescheduleRB"; 
    12561258 
    12571259        var durationRescheduleRB = Html.radio({name:"rescheduleAction", id:"durationRescheduleRB", style:{verticalAlign: "middle"}}); 
     1260        var durationRescheduleExample = Html.a({href: Indico.Urls.ImagesBase + '/resched_ex_2.png', title: 'Duration Example'}, $T("See an example")); 
     1261        $(durationRescheduleExample.dom).colorbox(); 
    12581262        var durationRescheduleLabel = Html.label({style: {fontWeight: "normal"}}, 
    12591263                Html.div("rescheduleLabelTitle", $T("Adjust duration of all entries")), 
     
    12661270                                        "If a time gap is specified, the duration will be extended up to the value of " + 
    12671271                                        "this time gap before the starting time of the next entry. "), 
    1268                         Html.a({href: Indico.Urls.ImagesBase + '/resched_ex_2.png', rel: 'lightbox', title: 'Duration Example', onclick: "showLightbox(this); return false;"}, $T("See an example")))); 
     1272                        durationRescheduleExample)); 
    12691273 
    12701274        durationRescheduleLabel.dom.htmlFor = "durationRescheduleRB"; 
  • indico/htdocs/js/indico/jquery/defaults.js

    rc1707f r1a3173  
    1010    style: {tip: {corner: true}} 
    1111}); 
     12 
     13$.extend($.colorbox.settings, { 
     14    opacity: 0.6 
     15}); 
  • indico/htdocs/js/indico/jquery/global.js

    r71a6b7 r1a3173  
    2525        } 
    2626    }); 
     27 
     28    // Enable colorbox for links with rel="lightbox" 
     29    $('a[rel="lightbox"]').colorbox(); 
    2730}); 
Note: See TracChangeset for help on using the changeset viewer.