diff options
author | Charlie Marshall <charlie0440@gmail.com> | 2013-08-01 17:15:43 +0100 |
---|---|---|
committer | Charlie Marshall <charlie0440@gmail.com> | 2013-08-01 17:15:43 +0100 |
commit | 8e3e20abe4407e9d1f310c996fa22aafb7385bb4 (patch) | |
tree | 584fc6ad0dfb77477b065132c1371b46131298e6 /usr/local/www/themes/pfsense_ng_fs | |
parent | 0b1f9973545f23001cf2825266e9396278785e14 (diff) | |
download | pfsense-8e3e20abe4407e9d1f310c996fa22aafb7385bb4.zip pfsense-8e3e20abe4407e9d1f310c996fa22aafb7385bb4.tar.gz |
add user messages and change cursor for theme pfsense_ng_fs
Diffstat (limited to 'usr/local/www/themes/pfsense_ng_fs')
-rw-r--r-- | usr/local/www/themes/pfsense_ng_fs/loader.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/themes/pfsense_ng_fs/loader.js b/usr/local/www/themes/pfsense_ng_fs/loader.js index 44628da..787753c 100644 --- a/usr/local/www/themes/pfsense_ng_fs/loader.js +++ b/usr/local/www/themes/pfsense_ng_fs/loader.js @@ -108,7 +108,7 @@ jQuery(document).ready(function () { /////////////////////////////////////////// jQuery('#col2').css("float","left"); - jQuery('<br/><br/><div><div id =\"addCol\" style=float:left><img src=\"./themes/pfsense_ng_fs/images/icons/icon_plus.gif\"/> Add column </div><div id =\"delCol\" style=float:left><img src=\"./themes/pfsense_ng_fs/images/icons/icon_x.gif\"/> Delete column</div><br/><br/></div> ').insertBefore('#niftyOutter.fakeClass'); + jQuery('<br/><br/><div id=\"columnModifier\"><div style=\"float:left\"><div id =\"addCol\" style=\"float:left\"><img src=\"./themes/pfsense_ng_fs/images/icons/icon_plus.gif\" style=\"cursor:pointer\" alt=\"Click here to add a column\"/></div> Add column </div><div style=\"float:left\"><div id =\"delCol\" style=\"float:left\"><img src=\"./themes/pfsense_ng_fs/images/icons/icon_x.gif\" style=\"cursor:pointer\" alt=\"Click here to delete a column\"/></div> Delete column</div><div id=\"columnWarningText\" style=\"float:left; margin-left:5em\"></div><br/><br/>').insertBefore('#niftyOutter.fakeClass'); // on click add a new column and change column widths jQuery('#addCol').click(function(){ @@ -123,6 +123,9 @@ jQuery(document).ready(function () { // connect new column with other columns jQuery('.ui-sortable').sortable({connectWith: '.ui-sortable', dropOnEmpty: true, handle: '.widgetheader', change: showSave}); + } + else{ + jQuery('#columnWarningText').html('<b>Maximum number of columns reached</b>').show().delay(1000).fadeOut(1000); } }); @@ -145,6 +148,9 @@ jQuery(document).ready(function () { showSave(); } + else{ + jQuery('#columnWarningText').html('<b>Minimum number of columns reached</b>').show().delay(1000).fadeOut(1000); + } }); }); //]]> |